mirror of
https://github.com/sahinakkaya/dotfiles.git
synced 2024-12-23 07:39:36 +01:00
Clean up configs for a new rice
This commit is contained in:
parent
68b6d4cd12
commit
cfedfe11ae
@ -1 +0,0 @@
|
|||||||
/home/sahin/.cache/wal/dunstrc
|
|
@ -1,151 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
set $mod Mod1
|
|
||||||
|
|
||||||
font pango:monospace 12
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
exec --no-startup-id nm-applet
|
|
||||||
|
|
||||||
exec_always --no-startup-id pkill picom; picom --no-use-damage --experimental-backends
|
|
||||||
exec_always --no-startup-id pkill dunst; dunst
|
|
||||||
|
|
||||||
|
|
||||||
exec_always --no-startup-id xrdb ~/.Xresources
|
|
||||||
exec_always --no-startup-id ~/.config/polybar/launch.sh
|
|
||||||
|
|
||||||
|
|
||||||
for_window [class="^.*"] border pixel 2
|
|
||||||
set_from_resource $fg i3wm.color1 #f0f0f0
|
|
||||||
set_from_resource $bg i3wm.color3 #ccaa00
|
|
||||||
set_from_resource $grayish i3wm.color15 #555555
|
|
||||||
client.focused $grayish $grayish $fg $bg $bg
|
|
||||||
|
|
||||||
gaps bottom 20
|
|
||||||
|
|
||||||
bindsym $mod+m exec ~/scripts/i3-layout-manager/layout_manager.sh
|
|
||||||
bindsym $mod+x exec ~/scripts/kill-process.sh
|
|
||||||
|
|
||||||
bindsym $mod+Tab workspace back_and_forth
|
|
||||||
|
|
||||||
set $refresh_i3status killall -SIGUSR1 i3status
|
|
||||||
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +5% && $refresh_i3status
|
|
||||||
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -5% && $refresh_i3status
|
|
||||||
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status
|
|
||||||
bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status
|
|
||||||
|
|
||||||
floating_modifier $mod
|
|
||||||
|
|
||||||
bindsym $mod+Return exec st
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
bindsym $mod+h focus left
|
|
||||||
bindsym $mod+j focus down
|
|
||||||
bindsym $mod+k focus up
|
|
||||||
bindsym $mod+l focus right
|
|
||||||
|
|
||||||
|
|
||||||
bindsym $mod+Shift+h move left
|
|
||||||
bindsym $mod+Shift+j move down
|
|
||||||
bindsym $mod+Shift+k move up
|
|
||||||
bindsym $mod+Shift+l move right
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
bindsym $mod+f fullscreen toggle
|
|
||||||
|
|
||||||
bindsym $mod+minus layout stacking
|
|
||||||
bindsym $mod+t layout tabbed
|
|
||||||
bindsym $mod+w layout toggle split
|
|
||||||
|
|
||||||
bindsym $mod+Shift+space floating toggle
|
|
||||||
|
|
||||||
bindsym $mod+Control+space focus mode_toggle
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
set $ws1 "1"
|
|
||||||
set $ws2 "2"
|
|
||||||
set $ws3 "3"
|
|
||||||
set $ws4 "4"
|
|
||||||
set $ws5 "5"
|
|
||||||
set $ws6 "6"
|
|
||||||
set $ws7 "7"
|
|
||||||
set $ws8 "8"
|
|
||||||
set $ws9 "9"
|
|
||||||
set $ws10 "10"
|
|
||||||
|
|
||||||
assign [class="Discord"] $ws9
|
|
||||||
assign [class="Firefox"] $ws2
|
|
||||||
assign [class="zoom"] $ws4
|
|
||||||
assign [class="streamlink-twitch-gui"] $ws3
|
|
||||||
|
|
||||||
bindsym $mod+e workspace prev
|
|
||||||
bindsym $mod+u workspace next
|
|
||||||
|
|
||||||
|
|
||||||
bindsym $mod+semicolon workspace number $ws1
|
|
||||||
bindsym $mod+comma workspace number $ws2
|
|
||||||
bindsym $mod+period workspace number $ws3
|
|
||||||
bindsym $mod+p workspace number $ws4
|
|
||||||
bindsym $mod+y workspace number $ws5
|
|
||||||
bindsym $mod+6 workspace number $ws6
|
|
||||||
bindsym $mod+g workspace number $ws7
|
|
||||||
bindsym $mod+c workspace number $ws8
|
|
||||||
bindsym $mod+r workspace number $ws9
|
|
||||||
bindsym $mod+0 workspace number $ws10
|
|
||||||
|
|
||||||
|
|
||||||
bindsym $mod+Shift+semicolon move container to workspace number $ws1
|
|
||||||
bindsym $mod+Shift+comma move container to workspace number $ws2
|
|
||||||
bindsym $mod+Shift+period move container to workspace number $ws3
|
|
||||||
bindsym $mod+Shift+p move container to workspace number $ws4
|
|
||||||
bindsym $mod+Shift+y move container to workspace number $ws5
|
|
||||||
bindsym $mod+Shift+6 move container to workspace number $ws6
|
|
||||||
bindsym $mod+Shift+g move container to workspace number $ws7
|
|
||||||
bindsym $mod+Shift+c move container to workspace number $ws8
|
|
||||||
bindsym $mod+Shift+r move container to workspace number $ws9
|
|
||||||
bindsym $mod+Shift+0 move container to workspace number $ws10
|
|
||||||
|
|
||||||
bindsym $mod+Shift+grave move scratchpad
|
|
||||||
|
|
||||||
bindsym $mod+grave scratchpad show
|
|
||||||
|
|
||||||
for_window [title="(?i)Terminator Preferences"] floating enable
|
|
||||||
for_window [title="^Calculator$"] floating enable
|
|
||||||
for_window [title="^Telegram$"] floating enable
|
|
||||||
|
|
||||||
for_window [urgent=latest] focus
|
|
||||||
|
|
||||||
bindsym $mod+Control+r restart
|
|
||||||
|
|
||||||
mode "resize" {
|
|
||||||
# These bindings trigger as soon as you enter the resize mode
|
|
||||||
|
|
||||||
# Pressing left will shrink the window’s width.
|
|
||||||
# Pressing right will grow the window’s width.
|
|
||||||
# Pressing up will shrink the window’s height.
|
|
||||||
# Pressing down will grow the window’s height.
|
|
||||||
bindsym h resize shrink width 10 px or 10 ppt
|
|
||||||
bindsym j resize grow height 10 px or 10 ppt
|
|
||||||
bindsym k resize shrink height 10 px or 10 ppt
|
|
||||||
bindsym l resize grow width 10 px or 10 ppt
|
|
||||||
|
|
||||||
# same bindings, but for the arrow keys
|
|
||||||
bindsym Left resize shrink width 10 px or 10 ppt
|
|
||||||
bindsym Down resize grow height 10 px or 10 ppt
|
|
||||||
bindsym Up resize shrink height 10 px or 10 ppt
|
|
||||||
bindsym Right resize grow width 10 px or 10 ppt
|
|
||||||
|
|
||||||
# back to normal: Enter or Escape or $mod+s
|
|
||||||
bindsym Return mode "default"
|
|
||||||
bindsym Escape mode "default"
|
|
||||||
bindsym $mod+s mode "default"
|
|
||||||
}
|
|
||||||
|
|
||||||
bindsym $mod+s mode "resize"
|
|
||||||
|
|
@ -1,59 +0,0 @@
|
|||||||
backend = "glx";
|
|
||||||
vsync = true;
|
|
||||||
|
|
||||||
opacity-rule = [ ];
|
|
||||||
|
|
||||||
|
|
||||||
corner-radius = 10.0;
|
|
||||||
rounded-corners-exclude = [
|
|
||||||
# "widthb > 1365 && heightb > 736" # For smart gaps and a non-floating bar
|
|
||||||
# "class_g = 'Dunst'"
|
|
||||||
];
|
|
||||||
|
|
||||||
|
|
||||||
# Add dual-kawase blur
|
|
||||||
|
|
||||||
|
|
||||||
blur:
|
|
||||||
{
|
|
||||||
background = true;
|
|
||||||
background-frame = true;
|
|
||||||
background-fixed = true;
|
|
||||||
kern = "3x3box";
|
|
||||||
method = "dual_kawase";
|
|
||||||
strength = 6;
|
|
||||||
# blur-strength = 2;
|
|
||||||
|
|
||||||
background-exclude = [
|
|
||||||
"class_g = 'slop'",
|
|
||||||
"class_g = 'XAVA'",
|
|
||||||
"class_g = 'lattedock'",
|
|
||||||
"class_g = 'latte-dock'"
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
wintypes:
|
|
||||||
{
|
|
||||||
normal = {blur-background = true;};
|
|
||||||
splash = {blur-background = false;};
|
|
||||||
}
|
|
||||||
|
|
||||||
shadow = true;
|
|
||||||
shadow-radius = 12;
|
|
||||||
shadow-opacity = 0.25;
|
|
||||||
shadow-offset-x = -9;
|
|
||||||
shadow-offset-y = -9;
|
|
||||||
shadow-exclude = [
|
|
||||||
"class_g = 'XAVA'"
|
|
||||||
];
|
|
||||||
|
|
||||||
|
|
||||||
fading = true;
|
|
||||||
fade-in-step = 0.056;
|
|
||||||
fade-out-step = 0.06;
|
|
||||||
fade-exclude = [ ];
|
|
||||||
|
|
||||||
# Do not fade on window open/close.
|
|
||||||
no-fading-openclose = true
|
|
||||||
transition-length = 350
|
|
@ -1,442 +0,0 @@
|
|||||||
;==========================================================
|
|
||||||
;
|
|
||||||
;
|
|
||||||
; ██████╗ ██████╗ ██╗ ██╗ ██╗██████╗ █████╗ ██████╗
|
|
||||||
; ██╔══██╗██╔═══██╗██║ ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗
|
|
||||||
; ██████╔╝██║ ██║██║ ╚████╔╝ ██████╔╝███████║██████╔╝
|
|
||||||
; ██╔═══╝ ██║ ██║██║ ╚██╔╝ ██╔══██╗██╔══██║██╔══██╗
|
|
||||||
; ██║ ╚██████╔╝███████╗██║ ██████╔╝██║ ██║██║ ██║
|
|
||||||
; ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝
|
|
||||||
;
|
|
||||||
;
|
|
||||||
; To learn more about how to configure Polybar
|
|
||||||
; go to https://github.com/polybar/polybar
|
|
||||||
;
|
|
||||||
; The README contains a lot of information
|
|
||||||
;
|
|
||||||
;==========================================================
|
|
||||||
;
|
|
||||||
; 並 全 侀 冀 勇 勺 喝 啕 喙 嗢 塚 墳 奄 奔 婢 嬨 廒 廙 彩 徭 惘 慎 愈 憎 慠 懲 戴 揄 搜 摒 敖 晴 朗 望 杖 歹 殺 流 滛 滋 漢 瀞 煮 瞧 爵 犯 猪 瑱 甆 画 瘝 瘟 益 盛 直 睊 着 磌 窱 節 类 絛 練 缾 者 荒 華 蝹 襁 覆 視 調 諸 請 謁 諾 諭 謹 變 贈 輸 遲 醙 鉶 陼 難 靖 韛 響 頋 頻 鬒 龜 𢡊 𢡄 𣏕 㮝 䀘 䀹 𥉉 𥳐 𧻓 齃 龎
|
|
||||||
[colors]
|
|
||||||
; background = #fa1e2137
|
|
||||||
; foreground = #e3eaf3
|
|
||||||
; primary = #02c084
|
|
||||||
; secondary = #65a2d9
|
|
||||||
; tertiary = #d07ef2
|
|
||||||
; fourth = #e5c246
|
|
||||||
alert = #ed404c
|
|
||||||
background = ${xrdb:color0:#222}
|
|
||||||
foreground = ${xrdb:color15:#e3eaf3}
|
|
||||||
; alert = ${xrdb:color1:#222}
|
|
||||||
primary = ${xrdb:color10:#222}
|
|
||||||
secondary = ${xrdb:color11:#222}
|
|
||||||
tertiary = ${xrdb:color12:#222}
|
|
||||||
fourth = ${xrdb:color13:#222}
|
|
||||||
fifth = ${xrdb:color14:#222}
|
|
||||||
|
|
||||||
[colors-andromeda]
|
|
||||||
background = #282A3A
|
|
||||||
background-alt = #3a3e4e
|
|
||||||
foreground = #e1e3e4
|
|
||||||
foreground-alt = #7e8294
|
|
||||||
primary = #f0c362
|
|
||||||
secondary = #bb97ee
|
|
||||||
alert = #fb617e
|
|
||||||
red = #fb617e
|
|
||||||
green = #9ed06c
|
|
||||||
yellow = #f0c362
|
|
||||||
blue = #6dcae8
|
|
||||||
magenta = #bb97ee
|
|
||||||
cyan = #f89860
|
|
||||||
gray = #7e8294
|
|
||||||
black = #181a1c
|
|
||||||
|
|
||||||
[bar/main]
|
|
||||||
monitor = ${env:MONITOR:}
|
|
||||||
width = 100%
|
|
||||||
offset-x = 0
|
|
||||||
offset-y = 1060
|
|
||||||
|
|
||||||
height = 20
|
|
||||||
radius = 2
|
|
||||||
|
|
||||||
override-redirect = true
|
|
||||||
wm-restack = i3
|
|
||||||
|
|
||||||
; background = #dd1E222A
|
|
||||||
background = ${colors.background}
|
|
||||||
foreground = ${colors.foreground}
|
|
||||||
|
|
||||||
padding-left = 1
|
|
||||||
padding-right = 1
|
|
||||||
module-margin-left = 1
|
|
||||||
module-margin-right = 2
|
|
||||||
|
|
||||||
font-0 = Hack Nerd Font:pixelsize=11:antialias=true;2.5
|
|
||||||
font-1 = Hack Nerd Font:style=Regular:pixelsize=17:antialias=true;3
|
|
||||||
|
|
||||||
modules-left = i3 cpu temperaturecpu memory xkeyboard
|
|
||||||
modules-right = bluetooth audio backlight wlan wired-network battery date powermenu
|
|
||||||
|
|
||||||
cursor-click = pointer
|
|
||||||
cursor-scroll = ns-resize
|
|
||||||
|
|
||||||
tray-position = right
|
|
||||||
tray-padding = 0
|
|
||||||
;tray-background = #0063ff
|
|
||||||
|
|
||||||
[bar/top]
|
|
||||||
monitor = ${env:MONITOR:}
|
|
||||||
width = 100%
|
|
||||||
offset-x = 0
|
|
||||||
offset-y = 0
|
|
||||||
|
|
||||||
height = 20
|
|
||||||
radius = 2
|
|
||||||
|
|
||||||
override-redirect = true
|
|
||||||
wm-restack = i3
|
|
||||||
|
|
||||||
; background = #dd1E222A
|
|
||||||
background = ${colors.background}
|
|
||||||
foreground = ${colors.foreground}
|
|
||||||
|
|
||||||
padding-left = 1
|
|
||||||
padding-right = 1
|
|
||||||
module-margin-left = 1
|
|
||||||
module-margin-right = 2
|
|
||||||
|
|
||||||
font-0 = Hack Nerd Font:pixelsize=11:antialias=true;2.5
|
|
||||||
font-1 = Hack Nerd Font:style=Regular:pixelsize=17:antialias=true;3
|
|
||||||
|
|
||||||
modules-center = xwindow
|
|
||||||
|
|
||||||
cursor-click = pointer
|
|
||||||
cursor-scroll = ns-resize
|
|
||||||
|
|
||||||
;tray-background = #0063ff
|
|
||||||
[module/xkeyboard]
|
|
||||||
type = internal/xkeyboard
|
|
||||||
|
|
||||||
; List of indicators to ignore
|
|
||||||
blacklist-0 = num lock
|
|
||||||
blacklist-1 = scroll lock
|
|
||||||
format-foreground = ${colors.fifth}
|
|
||||||
|
|
||||||
[module/xwindow]
|
|
||||||
type = internal/xwindow
|
|
||||||
label = %title%
|
|
||||||
label-maxlen = 150
|
|
||||||
|
|
||||||
|
|
||||||
[module/filesystem]
|
|
||||||
type = internal/fs
|
|
||||||
interval = 25111
|
|
||||||
mount-0 = /
|
|
||||||
label-mounted = %{F#0a81f5}%mountpoint%%{F-}: %percentage_used%%
|
|
||||||
label-unmounted = %mountpoint% not mounted
|
|
||||||
label-unmounted-foreground = ${colors.foreground}
|
|
||||||
|
|
||||||
[module/bluetooth]
|
|
||||||
type = custom/script
|
|
||||||
exec = ~/Desktop/GitRepositories/rofi-bluetooth/rofi-bluetooth --status
|
|
||||||
interval = 1
|
|
||||||
click-left = ~/Desktop/GitRepositories/rofi-bluetooth/rofi-bluetooth &
|
|
||||||
|
|
||||||
[module/i3]
|
|
||||||
type = internal/i3
|
|
||||||
pin-workspaces = false
|
|
||||||
strip-wsnumbers = true
|
|
||||||
index-sort = true
|
|
||||||
enable-click = true
|
|
||||||
enable-scroll = true
|
|
||||||
wrapping-scroll = false
|
|
||||||
reverse-scroll = false
|
|
||||||
fuzzy-match = true
|
|
||||||
; bigger icons
|
|
||||||
; ws-icon-0 = "0;%{T2}%{T-}"
|
|
||||||
; ws-icon-1 = "1;%{T2}%{T-}"
|
|
||||||
; ws-icon-2 = "2;%{T2}%{T-}"
|
|
||||||
; ws-icon-3 = "3;%{T2}%{T-}"
|
|
||||||
; ws-icon-4 = "4;%{T2}4%{T-}"
|
|
||||||
; ﲵ
|
|
||||||
ws-icon-default = ""
|
|
||||||
ws-icon-0 = "0;"
|
|
||||||
ws-icon-1 = "1;"
|
|
||||||
ws-icon-2 = "2;"
|
|
||||||
ws-icon-3 = "3;"
|
|
||||||
ws-icon-4 = "4;4"
|
|
||||||
ws-icon-5 = "5;"
|
|
||||||
ws-icon-6 = "6;"
|
|
||||||
ws-icon-7 = "7;7"
|
|
||||||
ws-icon-8 = "8;8"
|
|
||||||
ws-icon-9 = "9;ﭮ"
|
|
||||||
|
|
||||||
format = <label-state> <label-mode>
|
|
||||||
label-mode = %mode%
|
|
||||||
label-mode-padding = 2
|
|
||||||
label-mode-background = #e60053
|
|
||||||
|
|
||||||
label-focused = %icon%
|
|
||||||
label-focused-foreground = ${colors.fourth}
|
|
||||||
; label-focused-background = #3a3e4e
|
|
||||||
label-focused-background = ${colors.background}
|
|
||||||
label-focused-padding = 1
|
|
||||||
|
|
||||||
label-unfocused = ${self.label-focused}
|
|
||||||
; label-unfocused-foreground = #0a7383
|
|
||||||
label-unfocused-foreground = ${colors.fifth}
|
|
||||||
label-unfocused-padding = ${self.label-focused-padding}
|
|
||||||
|
|
||||||
label-visible = ${self.label-focused}
|
|
||||||
; label-visible-foreground = #0a7383
|
|
||||||
label-visible-foreground = ${colors.fifth}
|
|
||||||
label-visible-padding = ${self.label-focused-padding}
|
|
||||||
|
|
||||||
label-urgent = ${self.label-focused}
|
|
||||||
label-urgent-foreground = ${colors.alert}
|
|
||||||
label-urgent-padding = ${self.label-focused-padding}
|
|
||||||
|
|
||||||
[module/backlight]
|
|
||||||
type = internal/backlight
|
|
||||||
card = intel_backlight
|
|
||||||
format = <label>
|
|
||||||
label = %{A1:applet_backlight:}%{A4:light -A 10:}%{A5:light -U 10:} %percentage%% %{A}%{A}%{A}
|
|
||||||
; %{A1:applet_backlight:}%{A4:xbacklight -dec 10:}This opens chromium%{A} and this one firefox%{A}
|
|
||||||
label-foreground = ${colors.tertiary}
|
|
||||||
|
|
||||||
[module/wlan]
|
|
||||||
type = internal/network
|
|
||||||
interface = wlan0
|
|
||||||
interval = 3.0
|
|
||||||
|
|
||||||
format-connected = <label-connected>
|
|
||||||
format-connected-underline = #9f78e1
|
|
||||||
; label-connected = "直"
|
|
||||||
label-connected = %{A1:applet_network:}直 %essid% %signal%%%{A}
|
|
||||||
label-connected-foreground = ${colors.primary}
|
|
||||||
|
|
||||||
format-disconnected = <label-disconnected>
|
|
||||||
format-disconnected-underline = ${self.format-connected-underline}
|
|
||||||
label-disconnected = %{A1:applet_network:}睊%{A}
|
|
||||||
label-disconnected-foreground = ${colors.alert}
|
|
||||||
|
|
||||||
; a = worst
|
|
||||||
ramp-signal-0 = a
|
|
||||||
ramp-signal-1 = b
|
|
||||||
ramp-signal-2 = c
|
|
||||||
ramp-signal-3 = d
|
|
||||||
ramp-signal-4 = e
|
|
||||||
[module/cpu]
|
|
||||||
type = internal/cpu
|
|
||||||
interval = 0.5
|
|
||||||
|
|
||||||
|
|
||||||
; format = <label> <ramp-coreload>
|
|
||||||
format = <label>
|
|
||||||
label = " %percentage%%"
|
|
||||||
format-prefix =
|
|
||||||
format-foreground = ${colors.fifth}
|
|
||||||
format-padding = 0
|
|
||||||
ramp-coreload-spacing = 0
|
|
||||||
ramp-coreload-0 = ▁
|
|
||||||
ramp-coreload-1 = ▂
|
|
||||||
ramp-coreload-2 = ▃
|
|
||||||
ramp-coreload-3 = ▄
|
|
||||||
ramp-coreload-4 = ▅
|
|
||||||
ramp-coreload-5 = ▆
|
|
||||||
ramp-coreload-6 = ▇
|
|
||||||
ramp-coreload-7 = █
|
|
||||||
|
|
||||||
|
|
||||||
[module/temperaturecpu]
|
|
||||||
type = internal/temperature
|
|
||||||
interval = 1
|
|
||||||
thermal-zone = 0
|
|
||||||
|
|
||||||
hwmon-path = /sys/devices/platform/coretemp.0/hwmon/hwmon3/temp1_input
|
|
||||||
|
|
||||||
warn-temperature = 65
|
|
||||||
|
|
||||||
units = true
|
|
||||||
|
|
||||||
format = <ramp> <label>
|
|
||||||
format-foreground = ${colors.secondary}
|
|
||||||
format-overline = ${colors-andromeda.background}
|
|
||||||
format-underline = ${colors-andromeda.background}
|
|
||||||
; format-padding = 2
|
|
||||||
|
|
||||||
format-warn = <ramp> <label-warn>
|
|
||||||
; format-warn-background = ${colors-andromeda.background}
|
|
||||||
format-warn-foreground = ${colors.alert}
|
|
||||||
format-warn-overline = ${colors-andromeda.background}
|
|
||||||
format-warn-underline = ${colors-andromeda.background}
|
|
||||||
; format-warn-padding = 2
|
|
||||||
|
|
||||||
label = %temperature-c%
|
|
||||||
|
|
||||||
label-warn = "%temperature-c%"
|
|
||||||
|
|
||||||
; Requires the <ramp> tag
|
|
||||||
; The icon selection will range from 0 to `warn-temperature`
|
|
||||||
; with the current temperature as index.
|
|
||||||
ramp-0 =
|
|
||||||
ramp-1 =
|
|
||||||
ramp-2 =
|
|
||||||
ramp-3 =
|
|
||||||
ramp-4 =
|
|
||||||
|
|
||||||
|
|
||||||
[module/memory]
|
|
||||||
type = internal/memory
|
|
||||||
|
|
||||||
interval = 1
|
|
||||||
|
|
||||||
format = <label>
|
|
||||||
format-prefix =
|
|
||||||
; format-background = ${colors-andromeda.background}
|
|
||||||
format-foreground = ${colors.fourth}
|
|
||||||
format-padding = 1
|
|
||||||
|
|
||||||
|
|
||||||
label = " %percentage_used%%"
|
|
||||||
|
|
||||||
|
|
||||||
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
|
||||||
[module/wired-network]
|
|
||||||
type = internal/network
|
|
||||||
interface = eth0
|
|
||||||
|
|
||||||
format-connected-underline = #55aa55
|
|
||||||
; label-connected = %linkspeed%
|
|
||||||
label-connected =
|
|
||||||
label-connected-foreground = ${colors.primary}
|
|
||||||
|
|
||||||
[module/date]
|
|
||||||
type = internal/date
|
|
||||||
interval = 1
|
|
||||||
|
|
||||||
date = ""
|
|
||||||
time = "%l:%M %p"
|
|
||||||
date-alt = "%d-%m-%Y"
|
|
||||||
time-alt = "%H:%M:%S"
|
|
||||||
|
|
||||||
format-prefix-foreground = ${colors.foreground}
|
|
||||||
format-underline = #0a6cf5
|
|
||||||
label = %{A1:applet_time:}%date%%time%%{A}
|
|
||||||
|
|
||||||
[module/alsa]
|
|
||||||
type = internal/alsa
|
|
||||||
|
|
||||||
format-volume = <label-volume> <bar-volume>
|
|
||||||
label-volume = VOL
|
|
||||||
label-volume-foreground = ${root.foreground}
|
|
||||||
|
|
||||||
format-muted-prefix = " "
|
|
||||||
format-muted-foreground = ${colors.foreground-alt}
|
|
||||||
label-muted = sound muted
|
|
||||||
|
|
||||||
bar-volume-width = 10
|
|
||||||
bar-volume-foreground-0 = #55aa55
|
|
||||||
bar-volume-foreground-1 = #55aa55
|
|
||||||
bar-volume-foreground-2 = #55aa55
|
|
||||||
bar-volume-foreground-3 = #55aa55
|
|
||||||
bar-volume-foreground-4 = #55aa55
|
|
||||||
bar-volume-foreground-5 = #f5a70a
|
|
||||||
bar-volume-foreground-6 = #ff5555
|
|
||||||
bar-volume-gradient = false
|
|
||||||
bar-volume-indicator = |
|
|
||||||
bar-volume-indicator-font = 2
|
|
||||||
bar-volume-fill = ─
|
|
||||||
bar-volume-fill-font = 2
|
|
||||||
bar-volume-empty = ─
|
|
||||||
bar-volume-empty-font = 2
|
|
||||||
bar-volume-empty-foreground = ${colors.foreground-alt}
|
|
||||||
|
|
||||||
[module/audio]
|
|
||||||
type = internal/pulseaudio
|
|
||||||
|
|
||||||
format-volume = <ramp-volume> <label-volume>
|
|
||||||
label-volume-foreground = ${colors.secondary}
|
|
||||||
ramp-volume-foreground = ${colors.secondary}
|
|
||||||
interval = 5
|
|
||||||
label-volume = %percentage%%
|
|
||||||
|
|
||||||
ramp-volume-0 =
|
|
||||||
ramp-volume-1 =
|
|
||||||
ramp-volume-2 =
|
|
||||||
|
|
||||||
label-muted = ﱝ
|
|
||||||
label-muted-foreground = ${colors.secondary}
|
|
||||||
click-right = pavucontrol
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[module/battery]
|
|
||||||
type = internal/battery
|
|
||||||
battery = BAT0
|
|
||||||
adapter = AC0
|
|
||||||
full-at = 91
|
|
||||||
|
|
||||||
format-charging = %{A1:applet_battery:}<animation-charging> <label-charging>%{A}
|
|
||||||
format-discharging = %{A1:applet_battery:}<ramp-capacity> <label-discharging>%{A}
|
|
||||||
; label = %{A1:applet_backlight:}%{A4:xbacklight -inc 10:}%{A5:xbacklight -dec 10:} %percentage%% %{A}%{A}%{A}
|
|
||||||
label-charging = %percentage%%
|
|
||||||
label-discharging = %percentage%%
|
|
||||||
label-full = %{A1:applet_battery:} Fully charged%{A}
|
|
||||||
label-full-foreground = #00ff00
|
|
||||||
|
|
||||||
|
|
||||||
ramp-capacity-0 =
|
|
||||||
ramp-capacity-0-foreground = #ff0000
|
|
||||||
ramp-capacity-1 =
|
|
||||||
ramp-capacity-1-foreground = #ff4000
|
|
||||||
ramp-capacity-2 =
|
|
||||||
ramp-capacity-2-foreground = #ff8000
|
|
||||||
ramp-capacity-3 =
|
|
||||||
ramp-capacity-3-foreground = #ffc000
|
|
||||||
ramp-capacity-4 =
|
|
||||||
ramp-capacity-4-foreground = #ffff00
|
|
||||||
ramp-capacity-5 =
|
|
||||||
ramp-capacity-5-foreground = #aaff00
|
|
||||||
ramp-capacity-6 =
|
|
||||||
ramp-capacity-6-foreground = #aaff00
|
|
||||||
ramp-capacity-7 =
|
|
||||||
ramp-capacity-7-foreground = #55ff00
|
|
||||||
ramp-capacity-8 =
|
|
||||||
ramp-capacity-8-foreground = #55ff00
|
|
||||||
ramp-capacity-9 =
|
|
||||||
ramp-capacity-9-foreground = #00ff00
|
|
||||||
ramp-capacity-foreground = ${colors.fourth}
|
|
||||||
|
|
||||||
animation-charging-0 =
|
|
||||||
animation-charging-1 =
|
|
||||||
animation-charging-2 =
|
|
||||||
animation-charging-3 =
|
|
||||||
animation-charging-4 =
|
|
||||||
animation-charging-5 =
|
|
||||||
|
|
||||||
animation-charging-foreground = ${colors.fourth}
|
|
||||||
|
|
||||||
label-discharging-foreground = ${colors.foreground}
|
|
||||||
label-charging-foreground = ${colors.fourth}
|
|
||||||
|
|
||||||
[module/powermenu]
|
|
||||||
type = custom/text
|
|
||||||
format-spacing = 1
|
|
||||||
content =
|
|
||||||
content-foreground = ${colors.alert}
|
|
||||||
click-left = applet_powermenu
|
|
||||||
|
|
||||||
|
|
||||||
[settings]
|
|
||||||
screenchange-reload = true
|
|
||||||
;compositing-background = xor
|
|
||||||
;compositing-background = screen
|
|
||||||
;compositing-foreground = source
|
|
||||||
;compositing-border = over
|
|
||||||
;pseudo-transparency =true
|
|
||||||
|
|
||||||
[global/wm]
|
|
||||||
margin-bottom = 20
|
|
||||||
; vim:ft=dosini
|
|
@ -1,7 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
pkill polybar
|
|
||||||
for m in $(polybar --list-monitors | cut -d":" -f1); do
|
|
||||||
MONITOR=$m polybar --reload main &
|
|
||||||
# MONITOR=$m polybar --reload top &
|
|
||||||
done
|
|
@ -1,10 +0,0 @@
|
|||||||
/* colors */
|
|
||||||
|
|
||||||
* {
|
|
||||||
al: #00000000;
|
|
||||||
bg: #282A3A;
|
|
||||||
bga: #3a3e4e;
|
|
||||||
fga: #e1e3e0;
|
|
||||||
fg: #e1e3e4;
|
|
||||||
ac: #7e8294;
|
|
||||||
}
|
|
@ -1,20 +0,0 @@
|
|||||||
* {
|
|
||||||
background-color: #282A3A;
|
|
||||||
text-color: #7e8294;
|
|
||||||
font: "Segoe UI 10";
|
|
||||||
}
|
|
||||||
|
|
||||||
window {
|
|
||||||
width: 250px;
|
|
||||||
padding: 0px;
|
|
||||||
border: 0px 0px -1px 0px;
|
|
||||||
margin: 0px 50px;
|
|
||||||
location: north;
|
|
||||||
left: 50%;
|
|
||||||
margin-left:-50%;
|
|
||||||
}
|
|
||||||
|
|
||||||
entry {
|
|
||||||
expand: true;
|
|
||||||
text-color: #7e8294;
|
|
||||||
}
|
|
@ -1,123 +0,0 @@
|
|||||||
/*
|
|
||||||
*
|
|
||||||
* Author : Aditya Shakya
|
|
||||||
* Mail : adi1090x@gmail.com
|
|
||||||
* Github : @adi1090x
|
|
||||||
* Twitter : @adi1090x
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
configuration {
|
|
||||||
font: "Iosevka Nerd Font 10";
|
|
||||||
show-icons: true;
|
|
||||||
icon-theme: "Papirus";
|
|
||||||
display-drun: "";
|
|
||||||
drun-display-format: "{name}";
|
|
||||||
disable-history: false;
|
|
||||||
fullscreen: false;
|
|
||||||
hide-scrollbar: true;
|
|
||||||
sidebar-mode: false;
|
|
||||||
}
|
|
||||||
|
|
||||||
@import "colors.rasi"
|
|
||||||
|
|
||||||
window {
|
|
||||||
transparency: "real";
|
|
||||||
background-color: @bg;
|
|
||||||
text-color: @fg;
|
|
||||||
border: 0px 0px 4px 0px;
|
|
||||||
border-color: @ac;
|
|
||||||
border-radius: 0px;
|
|
||||||
width: 400px;
|
|
||||||
location: center;
|
|
||||||
x-offset: 0;
|
|
||||||
y-offset: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
prompt {
|
|
||||||
enabled: true;
|
|
||||||
padding: 2px 0px 0px 10px;
|
|
||||||
background-color: @al;
|
|
||||||
text-color: @fg;
|
|
||||||
}
|
|
||||||
|
|
||||||
textbox-prompt-colon {
|
|
||||||
padding: 2px 0px 0px 5px;
|
|
||||||
background-color: @al;
|
|
||||||
text-color: @fg;
|
|
||||||
expand: false;
|
|
||||||
str: "";
|
|
||||||
font: "feather 12";
|
|
||||||
}
|
|
||||||
|
|
||||||
entry {
|
|
||||||
background-color: @al;
|
|
||||||
text-color: @fg;
|
|
||||||
placeholder-color: @fg;
|
|
||||||
expand: true;
|
|
||||||
horizontal-align: 0;
|
|
||||||
placeholder: "Search...";
|
|
||||||
padding: 2px 0px 0px 6px;
|
|
||||||
blink: true;
|
|
||||||
}
|
|
||||||
|
|
||||||
inputbar {
|
|
||||||
children: [ textbox-prompt-colon, prompt ];
|
|
||||||
background-color: @bga;
|
|
||||||
text-color: @fg;
|
|
||||||
expand: false;
|
|
||||||
border: 0px;
|
|
||||||
border-radius: 0px;
|
|
||||||
border-color: @ac;
|
|
||||||
margin: 0px;
|
|
||||||
padding: 8px;
|
|
||||||
}
|
|
||||||
|
|
||||||
listview {
|
|
||||||
background-color: @al;
|
|
||||||
padding: 0px;
|
|
||||||
columns: 1;
|
|
||||||
lines: 8;
|
|
||||||
spacing: 6px;
|
|
||||||
cycle: true;
|
|
||||||
dynamic: true;
|
|
||||||
layout: vertical;
|
|
||||||
}
|
|
||||||
|
|
||||||
mainbox {
|
|
||||||
background-color: @al;
|
|
||||||
border: 0px;
|
|
||||||
border-radius: 0px;
|
|
||||||
border-color: @ac;
|
|
||||||
children: [ inputbar, listview ];
|
|
||||||
spacing: 6px;
|
|
||||||
padding: 6px;
|
|
||||||
}
|
|
||||||
|
|
||||||
element {
|
|
||||||
background-color: @al;
|
|
||||||
text-color: @fga;
|
|
||||||
orientation: horizontal;
|
|
||||||
border-radius: 0px;
|
|
||||||
padding: 8px 8px 8px -10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
element-icon {
|
|
||||||
size: 24px;
|
|
||||||
border: 0px;
|
|
||||||
}
|
|
||||||
|
|
||||||
element-text {
|
|
||||||
expand: true;
|
|
||||||
horizontal-align: 0;
|
|
||||||
vertical-align: 0.5;
|
|
||||||
margin: 0px 2.5px 0px 2.5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
element selected {
|
|
||||||
background-color: @bga;
|
|
||||||
text-color: @fg;
|
|
||||||
border: 0px 0px 0px 0px;
|
|
||||||
border-radius: 0px;
|
|
||||||
border-color: @ac;
|
|
||||||
}
|
|
@ -1,40 +0,0 @@
|
|||||||
* {
|
|
||||||
background-color: #282A3A;
|
|
||||||
color: #7e8294;
|
|
||||||
font: "Segoe UI 10";
|
|
||||||
}
|
|
||||||
|
|
||||||
#window {
|
|
||||||
location: north;
|
|
||||||
width: 375px;
|
|
||||||
padding: -6px 0px;
|
|
||||||
children: [horibox];
|
|
||||||
}
|
|
||||||
|
|
||||||
#horibox {
|
|
||||||
orientation: horizontal;
|
|
||||||
children: [listview];
|
|
||||||
}
|
|
||||||
|
|
||||||
#listview {
|
|
||||||
layout: horizontal;
|
|
||||||
padding: 0px 0px;
|
|
||||||
spacing: 2px;
|
|
||||||
lines: 50;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
#element {
|
|
||||||
margin: 0px 5px;
|
|
||||||
padding: 6px 2px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#element selected {
|
|
||||||
color: #e1e3e4;
|
|
||||||
}
|
|
||||||
|
|
||||||
#button {
|
|
||||||
font: "Segoe UI 1 ";
|
|
||||||
width: 12;
|
|
||||||
text-color: #7e8294;
|
|
||||||
}
|
|
@ -1,3 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
nvidia-smi --query-gpu=utilization.gpu --format=csv,noheader,nounits | awk '{ print "GPU",""$1"","%"}'
|
|
@ -1,3 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
rofi -no-config -no-lazy-grab -show drun -modi drun -theme ~/.config/rofi/andromeda.rasi
|
|
@ -1,67 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
## Author : Aditya Shakya
|
|
||||||
## Mail : adi1090x@gmail.com
|
|
||||||
## Github : @adi1090x
|
|
||||||
## Twitter : @adi1090x
|
|
||||||
|
|
||||||
style="$($HOME/.config/rofi/)"
|
|
||||||
|
|
||||||
dir="$HOME/.config/rofi$style"
|
|
||||||
rofi_command="rofi -theme $dir/andromeda.rasi"
|
|
||||||
|
|
||||||
## Get info
|
|
||||||
IFACE="$(nmcli | grep -i interface | awk '/interface/ {print $2}')"
|
|
||||||
#SSID="$(iwgetid -r)"
|
|
||||||
#LIP="$(nmcli | grep -i server | awk '/server/ {print $2}')"
|
|
||||||
#PIP="$(dig +short myip.opendns.com @resolver1.opendns.com )"
|
|
||||||
STATUS="$(nmcli radio wifi)"
|
|
||||||
|
|
||||||
active=""
|
|
||||||
urgent=""
|
|
||||||
|
|
||||||
if (ping -c 1 archlinux.org || ping -c 1 google.com || ping -c 1 bitbucket.org || ping -c 1 github.com || ping -c 1 sourceforge.net) &>/dev/null; then
|
|
||||||
if [[ $STATUS == *"enable"* ]]; then
|
|
||||||
if [[ $IFACE == e* ]]; then
|
|
||||||
connected=""
|
|
||||||
else
|
|
||||||
connected=""
|
|
||||||
fi
|
|
||||||
active="-a 0"
|
|
||||||
SSID=" $(iwgetid -r)"
|
|
||||||
PIP="$(wget --timeout=30 http://ipinfo.io/ip -qO -)"
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
urgent="-u 0"
|
|
||||||
SSID="Disconnected"
|
|
||||||
PIP="Not Available"
|
|
||||||
connected=""
|
|
||||||
fi
|
|
||||||
|
|
||||||
## Icons
|
|
||||||
bmon=""
|
|
||||||
launch_cli=""
|
|
||||||
launch=""
|
|
||||||
|
|
||||||
options="$connected\n$bmon\n$launch_cli\n$launch"
|
|
||||||
|
|
||||||
## Main
|
|
||||||
chosen="$(echo -e "$options" | $rofi_command -p "$SSID" -dmenu $active $urgent -selected-row 1)"
|
|
||||||
case $chosen in
|
|
||||||
$connected)
|
|
||||||
if [[ $STATUS == *"enable"* ]]; then
|
|
||||||
nmcli radio wifi off
|
|
||||||
else
|
|
||||||
nmcli radio wifi on
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
$bmon)
|
|
||||||
termite -e bmon
|
|
||||||
;;
|
|
||||||
$launch_cli)
|
|
||||||
termite -e nmtui
|
|
||||||
;;
|
|
||||||
$launch)
|
|
||||||
nm-connection-editor
|
|
||||||
;;
|
|
||||||
esac
|
|
@ -1,94 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
## Author : Aditya Shakya
|
|
||||||
## Mail : adi1090x@gmail.com
|
|
||||||
## Github : @adi1090x
|
|
||||||
## Twitter : @adi1090x
|
|
||||||
|
|
||||||
dir="~/.config/polybar/rofi"
|
|
||||||
uptime=$(uptime -p | sed -e 's/up //g')
|
|
||||||
|
|
||||||
rofi_command="rofi -theme $dir/powermenu.rasi"
|
|
||||||
|
|
||||||
# Options
|
|
||||||
shutdown=" Shutdown"
|
|
||||||
reboot=" Restart"
|
|
||||||
lock=" Lock"
|
|
||||||
suspend=" Sleep"
|
|
||||||
logout=" Logout"
|
|
||||||
|
|
||||||
# Confirmation
|
|
||||||
confirm_exit() {
|
|
||||||
rofi -dmenu\
|
|
||||||
-i\
|
|
||||||
-no-fixed-num-lines\
|
|
||||||
-p "Are You Sure? : "\
|
|
||||||
-theme $dir/confirm.rasi
|
|
||||||
}
|
|
||||||
|
|
||||||
# Message
|
|
||||||
msg() {
|
|
||||||
rofi -theme "$dir/message.rasi" -e "Available Options - yes / y / no / n"
|
|
||||||
}
|
|
||||||
|
|
||||||
# Variable passed to rofi
|
|
||||||
options="$lock\n$suspend\n$logout\n$reboot\n$shutdown"
|
|
||||||
|
|
||||||
chosen="$(echo -e "$options" | $rofi_command -p "Uptime: $uptime" -dmenu -selected-row 0)"
|
|
||||||
case $chosen in
|
|
||||||
$shutdown)
|
|
||||||
ans=$(confirm_exit &)
|
|
||||||
if [[ $ans == "yes" || $ans == "ye" || $ans == "YE" || $ans == "yeah" || $ans == "yep" || $ans == "YEAH" || $ans == "YEP" || $ans == "YES" || $ans == "y" || $ans == "Y" ]]; then
|
|
||||||
systemctl poweroff
|
|
||||||
elif [[ $ans == "no" || $ans == "nope" || $ans == "NOPE" || $ans == "nah" || $ans == "NAH" || $ans == "NO" || $ans == "n" || $ans == "N" ]]; then
|
|
||||||
exit 0
|
|
||||||
else
|
|
||||||
msg
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
$reboot)
|
|
||||||
ans=$(confirm_exit &)
|
|
||||||
if [[ $ans == "yes" || $ans == "ye" || $ans == "YE" || $ans == "yeah" || $ans == "yep" || $ans == "YEAH" || $ans == "YEP" ||$ans == "YES" || $ans == "y" || $ans == "Y" ]]; then
|
|
||||||
systemctl reboot
|
|
||||||
elif [[ $ans == "no" || $ans == "nope" || $ans == "NOPE" || $ans == "nah" || $ans == "NAH" || $ans == "NO" || $ans == "n" || $ans == "N" ]]; then
|
|
||||||
exit 0
|
|
||||||
else
|
|
||||||
msg
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
$lock)
|
|
||||||
if [[ -f /usr/bin/betterlockscreen ]]; then
|
|
||||||
betterlockscreen -l -b 0.5
|
|
||||||
elif [[ -f /usr/bin/betterlockscreen ]]; then
|
|
||||||
betterlockscreen -l
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
$suspend)
|
|
||||||
ans=$(confirm_exit &)
|
|
||||||
if [[ $ans == "yes" || $ans == "ye" || $ans == "YE" || $ans == "yeah" || $ans == "yep" || $ans == "YEAH" || $ans == "YEP" ||$ans == "YES" || $ans == "y" || $ans == "Y" ]]; then
|
|
||||||
mpc -q pause
|
|
||||||
amixer set Master mute
|
|
||||||
systemctl suspend
|
|
||||||
elif [[ $ans == "no" || $ans == "nope" || $ans == "NOPE" || $ans == "nah" || $ans == "NAH" || $ans == "NO" || $ans == "n" || $ans == "N" ]]; then
|
|
||||||
exit 0
|
|
||||||
else
|
|
||||||
msg
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
$logout)
|
|
||||||
ans=$(confirm_exit &)
|
|
||||||
if [[ $ans == "yes" || $ans == "ye" || $ans == "YE" || $ans == "yeah" || $ans == "yep" || $ans == "YEAH" || $ans == "YEP" ||$ans == "YES" || $ans == "y" || $ans == "Y" ]]; then
|
|
||||||
if [[ "$DESKTOP_SESSION" == "Openbox" ]]; then
|
|
||||||
openbox --exit
|
|
||||||
elif [[ "$DESKTOP_SESSION" == "bspwm" ]]; then
|
|
||||||
bspc quit
|
|
||||||
elif [[ "$DESKTOP_SESSION" == "i3" ]]; then
|
|
||||||
i3-msg exit
|
|
||||||
fi
|
|
||||||
elif [[ $ans == "no" || $ans == "nope" || $ans == "NOPE" || $ans == "nah" || $ans == "NAH" || $ans == "NO" || $ans == "n" || $ans == "N" ]]; then
|
|
||||||
exit 0
|
|
||||||
else
|
|
||||||
msg
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
esac
|
|
@ -1,3 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
notify-send -u low "$(awk '{print "Uptime: " int($1/3600)" Hours "int(($1%3600)/60)" minutes "int($1%60)" seconds"}' /proc/uptime)"
|
|
@ -1,3 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
exec notify-send "$(curl -s http://rss.accuweather.com/rss/liveweather_rss.asp\?metric\=${METRIC}\&locCode\=76692 \ | sed -n '/Currently:/ s/.*: \(.*\): \([0-9]*\)\([CF]\).*/\2°\3 \1/p')"
|
|
@ -1,4 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
curl wttr.in/76692
|
|
||||||
|
|
@ -1,46 +0,0 @@
|
|||||||
[global_config]
|
|
||||||
inactive_color_offset = 0.816666666667
|
|
||||||
title_font = MesloLGS NF 9
|
|
||||||
title_use_system_font = False
|
|
||||||
[keybindings]
|
|
||||||
broadcast_all = None
|
|
||||||
broadcast_group = None
|
|
||||||
broadcast_off = None
|
|
||||||
close_term = None
|
|
||||||
close_window = None
|
|
||||||
go_down = None
|
|
||||||
go_left = None
|
|
||||||
go_next = None
|
|
||||||
go_prev = None
|
|
||||||
go_right = None
|
|
||||||
go_up = None
|
|
||||||
zoom_in = <Primary>KP_Add
|
|
||||||
zoom_out = <Primary>KP_Subtract
|
|
||||||
[layouts]
|
|
||||||
[[default]]
|
|
||||||
[[[child1]]]
|
|
||||||
parent = window0
|
|
||||||
type = Terminal
|
|
||||||
[[[window0]]]
|
|
||||||
parent = ""
|
|
||||||
type = Window
|
|
||||||
[plugins]
|
|
||||||
[profiles]
|
|
||||||
[[default]]
|
|
||||||
background_darkness = 0.95
|
|
||||||
background_type = transparent
|
|
||||||
cursor_color = "#aaaaaa"
|
|
||||||
custom_command = TERMINAL_NAME=Terminator /usr/bin/zsh
|
|
||||||
font = DroidSansMono Nerd Font 11
|
|
||||||
palette = "#282828:#cc241d:#98971a:#d79921:#458588:#b16286:#689d6a:#a89984:#928374:#fb4934:#b8bb26:#fabd2f:#83a598:#d3869b:#8ec07c:#ebdbb2"
|
|
||||||
scrollback_lines = 1000
|
|
||||||
scrollbar_position = hidden
|
|
||||||
show_titlebar = False
|
|
||||||
use_custom_command = True
|
|
||||||
use_system_font = False
|
|
||||||
use_theme_colors = True
|
|
||||||
visible_bell = True
|
|
||||||
[[New Profile]]
|
|
||||||
cursor_color = "#aaaaaa"
|
|
||||||
scrollbar_position = hidden
|
|
||||||
use_theme_colors = True
|
|
@ -1,199 +0,0 @@
|
|||||||
[global]
|
|
||||||
|
|
||||||
# --- Display --- #
|
|
||||||
|
|
||||||
# The monitor to be displayed to
|
|
||||||
monitor = 0
|
|
||||||
|
|
||||||
# Follow monitor with mouse
|
|
||||||
follow = mouse
|
|
||||||
|
|
||||||
# The geometry of the window
|
|
||||||
# widthxheight +/-x+/-y
|
|
||||||
geometry = "270x6-24+68"
|
|
||||||
|
|
||||||
# Show how many messages are hidden
|
|
||||||
indicate_hidden = yes
|
|
||||||
|
|
||||||
# Shrink window if it's smaller than the width.
|
|
||||||
shrink = no
|
|
||||||
|
|
||||||
# The transparency of the window.
|
|
||||||
transparency = 1
|
|
||||||
|
|
||||||
# Set height to padding + font size
|
|
||||||
notification_height = 0
|
|
||||||
|
|
||||||
# Draw a line between multiple notifications
|
|
||||||
separator_height = 3
|
|
||||||
separator_color = "#ffffffaa"
|
|
||||||
|
|
||||||
# Set notification padding
|
|
||||||
padding = 16
|
|
||||||
horizontal_padding = 16
|
|
||||||
|
|
||||||
# Disable frame (border)
|
|
||||||
frame_width = 0
|
|
||||||
|
|
||||||
# Sort messages by urgency.
|
|
||||||
sort = no
|
|
||||||
|
|
||||||
# Disable idle time
|
|
||||||
idle_threshold = 0
|
|
||||||
|
|
||||||
|
|
||||||
# --- Text --- #
|
|
||||||
|
|
||||||
# Set the font
|
|
||||||
# font = "Noto Sans 11"
|
|
||||||
font = "Hack Nerd Font 9.5"
|
|
||||||
|
|
||||||
# Set line height to font height
|
|
||||||
line_height = 0
|
|
||||||
|
|
||||||
# Reference for markup and formatting:
|
|
||||||
# <b>bold</b>
|
|
||||||
# <i>italic</i>
|
|
||||||
# <s>strikethrough</s>
|
|
||||||
# <u>underline</u>
|
|
||||||
# <https://developer.gnome.org/pango/stable/pango-Markup.html>.
|
|
||||||
# %a appname
|
|
||||||
# %s summary
|
|
||||||
# %b body
|
|
||||||
# %i iconname (including its path)
|
|
||||||
# %I iconname (without its path)
|
|
||||||
# %p progress value if set ([ 0%] to [100%]) or nothing
|
|
||||||
# %n progress value if set without any extra characters
|
|
||||||
# %% Literal %
|
|
||||||
|
|
||||||
markup = full
|
|
||||||
format = "<b>%s</b>\n%b"
|
|
||||||
|
|
||||||
# Left align the text
|
|
||||||
alignment = left
|
|
||||||
|
|
||||||
# Vertical alignment of message text and icon.
|
|
||||||
vertical_alignment = center
|
|
||||||
|
|
||||||
# Show age of message if message is old
|
|
||||||
show_age_threshold = 120
|
|
||||||
|
|
||||||
# Wrap text if it doesn't fit in geometry
|
|
||||||
word_wrap = yes
|
|
||||||
|
|
||||||
# Where to place ellipses if word wrap is disabled
|
|
||||||
# ellipsize = middle
|
|
||||||
|
|
||||||
# Use newlines '\n' in notifications.
|
|
||||||
ignore_newline = no
|
|
||||||
|
|
||||||
# Don't stack together notifications
|
|
||||||
stack_duplicates = false
|
|
||||||
|
|
||||||
# Hide the count of stacked notifications
|
|
||||||
# hide_duplicate_count = false
|
|
||||||
|
|
||||||
# Display indicators for URLs (U) and actions (A).
|
|
||||||
show_indicators = yes
|
|
||||||
|
|
||||||
|
|
||||||
# ---- Icons ---- #
|
|
||||||
|
|
||||||
# Align icons left/right/off
|
|
||||||
icon_position = left
|
|
||||||
|
|
||||||
# Scale small icons up to this size, set to 0 to disable.
|
|
||||||
min_icon_size = 0
|
|
||||||
|
|
||||||
# Scale larger icons down to this size, set to 0 to disable
|
|
||||||
max_icon_size = 40
|
|
||||||
|
|
||||||
# Paths to default icons.
|
|
||||||
icon_path = /usr/share/icons/ePapirus/128x128/apps:/usr/share/icons/ePapirus/128x128/devices:/usr/share/icons/ePapirus/128x128/mimetypes:/usr/share/icons/ePapirus/128x128/places:/usr/share/icons/Papirus/48x48/actions:/usr/share/icons/Papirus/48x48/apps:/usr/share/icons/Papirus/48x48/devices:/usr/share/icons/Papirus/48x48:emblems:/usr/share/icons/Papirus/48x48/emotes:/usr/share/icons/Papirus/48x48/mimetypes:/usr/share/icons/Papirus/48x48/places:/usr/share/icons/Papirus/48x48/status:/usr/share/icons/Papirus/16x16/actions:/usr/share/icons/Papirus/16x16/apps:/usr/share/icons/Papirus/16x16/devices:/usr/share/icons/Papirus/16x16/emblems:/usr/share/icons/Papirus/16x16/emotes:/usr/share/icons/Papirus/16x16/mimetypes:/usr/share/icons/Papirus/16x16/panel:/usr/share/icons/Papirus/16x16/places:/usr/share/icons/Papirus/16x16/status
|
|
||||||
|
|
||||||
|
|
||||||
# --- History --- #
|
|
||||||
|
|
||||||
# Avoid timing out hidden notifications
|
|
||||||
sticky_history = yes
|
|
||||||
|
|
||||||
# Maximum amount of notifications kept in history
|
|
||||||
history_length = 100
|
|
||||||
|
|
||||||
|
|
||||||
# --- Misc/Advanced --- #
|
|
||||||
|
|
||||||
dmenu = /usr/bin/dmenu -p dunst:
|
|
||||||
|
|
||||||
# Browser for opening urls in context menu.
|
|
||||||
browser = /usr/bin/firefox -new-tab
|
|
||||||
|
|
||||||
# Always run rule-defined scripts, even if the notification is suppressed
|
|
||||||
always_run_script = false
|
|
||||||
|
|
||||||
# Define the title of the windows spawned by dunst
|
|
||||||
title = Dunst
|
|
||||||
|
|
||||||
# Define the class of the windows spawned by dunst
|
|
||||||
class = Dunst
|
|
||||||
|
|
||||||
# Avoid printing a notification on startup
|
|
||||||
startup_notification = false
|
|
||||||
|
|
||||||
# Manage dunst's desire for talking
|
|
||||||
verbosity = mesg
|
|
||||||
|
|
||||||
# Define the corner radius of the notification window
|
|
||||||
corner_radius = 0
|
|
||||||
|
|
||||||
# Don't gnore the dbus closeNotification message.
|
|
||||||
ignore_dbusclose = false
|
|
||||||
|
|
||||||
|
|
||||||
# --- Legacy --- #
|
|
||||||
|
|
||||||
# Use the Xinerama extension instead of RandR for multi-monitor support.
|
|
||||||
force_xinerama = false
|
|
||||||
|
|
||||||
|
|
||||||
# --- Mouse --- #
|
|
||||||
mouse_middle_click = close_current
|
|
||||||
mouse_left_click = do_action, close_current
|
|
||||||
mouse_right_click = close_all
|
|
||||||
|
|
||||||
|
|
||||||
[experimental]
|
|
||||||
per_monitor_dpi = false
|
|
||||||
|
|
||||||
|
|
||||||
[shortcuts]
|
|
||||||
# Close notification.
|
|
||||||
close = ctrl+space
|
|
||||||
|
|
||||||
# Close all notifications.
|
|
||||||
close_all = ctrl+shift+space
|
|
||||||
|
|
||||||
# Redisplay last message(s).
|
|
||||||
history = ctrl+grave
|
|
||||||
|
|
||||||
# Context menu.
|
|
||||||
context = ctrl+shift+period
|
|
||||||
|
|
||||||
|
|
||||||
# --- Colors --- #
|
|
||||||
|
|
||||||
[urgency_low]
|
|
||||||
background = "{color9}"
|
|
||||||
foreground = "{foreground}"
|
|
||||||
timeout = 8
|
|
||||||
|
|
||||||
[urgency_normal]
|
|
||||||
background = "{color9}"
|
|
||||||
foreground = "{foreground}"
|
|
||||||
timeout = 8
|
|
||||||
|
|
||||||
[urgency_critical]
|
|
||||||
background = "#dd130ddd"
|
|
||||||
foreground = "#ffffff"
|
|
||||||
timeout = 0
|
|
||||||
icon = abrt
|
|
3548
.git-completion.bash
3548
.git-completion.bash
File diff suppressed because it is too large
Load Diff
355
.vimrc
355
.vimrc
@ -1,355 +0,0 @@
|
|||||||
" marks in this file
|
|
||||||
" p -> plugins
|
|
||||||
" s -> custom set's
|
|
||||||
set nocompatible " be iMproved, required
|
|
||||||
filetype off " required
|
|
||||||
set number
|
|
||||||
set path+=**
|
|
||||||
set clipboard=unnamedplus
|
|
||||||
set encoding=UTF-8
|
|
||||||
let mapleader = "\<Space>"
|
|
||||||
set relativenumber
|
|
||||||
set incsearch
|
|
||||||
set tabstop=4
|
|
||||||
set updatetime=100
|
|
||||||
set colorcolumn=81
|
|
||||||
" when indenting with '>', use 4 spaces width
|
|
||||||
set shiftwidth=4
|
|
||||||
" On pressing tab, insert 4 spaces
|
|
||||||
set expandtab
|
|
||||||
|
|
||||||
set foldmethod=indent
|
|
||||||
set foldlevel=99
|
|
||||||
|
|
||||||
set ic " ignore case while searching
|
|
||||||
set smartcase " ignore case if search pattern is lower case
|
|
||||||
" case-sensitive otherwise
|
|
||||||
"
|
|
||||||
set scrolloff=2
|
|
||||||
|
|
||||||
set mouse+=a
|
|
||||||
" if &term =~ '^xterm'
|
|
||||||
" tmux knows the extended mouse mode
|
|
||||||
set ttymouse=xterm2
|
|
||||||
" endif
|
|
||||||
|
|
||||||
|
|
||||||
"toggle comment with //
|
|
||||||
nmap // gcc
|
|
||||||
vmap // gc
|
|
||||||
|
|
||||||
" https://unix.stackexchange.com/questions/149209/refresh-changed-content-of-file-opened-in-vim/383044#383044
|
|
||||||
" Triger `autoread` when files changes on disk
|
|
||||||
" https://unix.stackexchange.com/questions/149209/refresh-changed-content-of-file-opened-in-vim/383044#383044
|
|
||||||
" https://vi.stackexchange.com/questions/13692/prevent-focusgained-autocmd-running-in-command-line-editing-mode
|
|
||||||
autocmd FocusGained,BufEnter,CursorHold,CursorHoldI *
|
|
||||||
\ if mode() !~ '\v(c|r.?|!|t)' && getcmdwintype() == '' | checktime | endif
|
|
||||||
|
|
||||||
" Notification after file change
|
|
||||||
" https://vi.stackexchange.com/questions/13091/autocmd-event-for-autoread
|
|
||||||
autocmd FileChangedShellPost *
|
|
||||||
\ echohl WarningMsg | echo "File changed on disk. Buffer reloaded." | echohl None
|
|
||||||
|
|
||||||
|
|
||||||
" Toggle relative line number
|
|
||||||
nmap <C-B><C-B> :set invrelativenumber<CR>
|
|
||||||
|
|
||||||
nmap gd :YcmCompleter GoToDefinition<CR>
|
|
||||||
nmap <leader>yr :YcmCompleter RefactorRename <C-r>=expand('<cword>')<CR><C-f>
|
|
||||||
|
|
||||||
nnoremap <leader>ghw :h <C-R>=expand("<cword>")<CR><CR>
|
|
||||||
|
|
||||||
" exit from insert mode without cursor movement
|
|
||||||
inoremap kj <esc>`^
|
|
||||||
nmap <C-m> :MaximizerToggle<CR>
|
|
||||||
let g:maximizer_set_default_mapping = 0
|
|
||||||
" Make Y consistent with C and D. See :help Y.
|
|
||||||
nnoremap Y y$
|
|
||||||
|
|
||||||
" by default, 'a jumps to line marked with ma
|
|
||||||
" while `a jumps to line AND column marked with ma
|
|
||||||
" swap ' and `
|
|
||||||
nnoremap ' `
|
|
||||||
nnoremap ` '
|
|
||||||
|
|
||||||
" <leader>q quits the current window
|
|
||||||
" nnoremap <silent> <leader>q :q<CR>
|
|
||||||
" inoremap <silent> <leader>q <ESC>:q<CR>
|
|
||||||
|
|
||||||
" indent with tab in visual mode
|
|
||||||
vmap <Tab> >
|
|
||||||
vmap <S-Tab> <
|
|
||||||
|
|
||||||
" Disable quote concealing in JSON files
|
|
||||||
let g:vim_json_conceal=0
|
|
||||||
|
|
||||||
" scroll by visual lines, useful when wrapping is enabled
|
|
||||||
nnoremap j gj
|
|
||||||
nnoremap k gk
|
|
||||||
|
|
||||||
let g:sneak#label = 1
|
|
||||||
let g:loaded_matchparen=1
|
|
||||||
|
|
||||||
" Start interactive EasyAlign in visual mode (e.g. vipga)
|
|
||||||
xmap ga <Plug>(EasyAlign)
|
|
||||||
|
|
||||||
" Start interactive EasyAlign for a motion/text object (e.g. gaip)
|
|
||||||
nmap ga <Plug>(EasyAlign)
|
|
||||||
" set the runtime path to include Vundle and initialize
|
|
||||||
set rtp+=~/.vim/bundle/Vundle.vim
|
|
||||||
" show cursorline only in active buffer
|
|
||||||
|
|
||||||
"keybindings for quickly switching windows
|
|
||||||
" nnoremap <C-J> <C-W>j
|
|
||||||
" nnoremap <C-K> <C-W>k
|
|
||||||
" nnoremap <C-L> <C-W>l
|
|
||||||
" nnoremap <C-H> <C-W>h
|
|
||||||
|
|
||||||
augroup CursorLine
|
|
||||||
au!
|
|
||||||
au VimEnter,WinEnter,BufWinEnter * setlocal cursorline
|
|
||||||
au WinLeave * setlocal nocursorline
|
|
||||||
augroup END
|
|
||||||
|
|
||||||
|
|
||||||
" toggle search with f3
|
|
||||||
nnoremap <F3> :nohlsearch<CR>
|
|
||||||
"trigger fzf with ctrl+f
|
|
||||||
nnoremap <silent> <C-f> :Files<CR>
|
|
||||||
"fzf but for git files.
|
|
||||||
silent! nmap <C-P> :GFiles<CR>
|
|
||||||
let g:fzf_colors = {
|
|
||||||
\ 'fg': ['fg', 'GruvboxGray'],
|
|
||||||
\ 'bg': ['bg', 'Normal'],
|
|
||||||
\ 'hl': ['fg', 'GruvboxRed'],
|
|
||||||
\ 'fg+': ['fg', 'GruvboxGreen'],
|
|
||||||
\ 'bg+': ['bg', 'GruvboxBg1'],
|
|
||||||
\ 'hl+': ['fg', 'GruvboxRed'],
|
|
||||||
\ 'info': ['fg', 'GruvboxOrange'],
|
|
||||||
\ 'prompt': ['fg', 'GruvboxBlue'],
|
|
||||||
\ 'header': ['fg', 'GruvboxBlue'],
|
|
||||||
\ 'pointer': ['fg', 'Error'],
|
|
||||||
\ 'marker': ['fg', 'Error'],
|
|
||||||
\ 'spinner': ['fg', 'Statement'],
|
|
||||||
\ }
|
|
||||||
let g:fzf_layout = {'window': {'width': 0.8, 'height': 0.8} }
|
|
||||||
let $FZF_DEFAULT_COMMAND = 'ag --hidden --ignore .git -l'
|
|
||||||
let $FZF_DEFAULT_OPTS='--reverse --bind change:top'
|
|
||||||
" Quickly insert an empty new line without entering insert mode
|
|
||||||
"nnoremap <Leader>o o<Esc>
|
|
||||||
"nnoremap <Leader>O O<Esc>
|
|
||||||
|
|
||||||
|
|
||||||
set t_Co=256
|
|
||||||
call vundle#begin()
|
|
||||||
|
|
||||||
Plugin 'airblade/vim-gitgutter'
|
|
||||||
Plugin 'altercation/vim-colors-solarized'
|
|
||||||
"Plugin 'ctrlpvim/ctrlp.vim'
|
|
||||||
Plugin 'christoomey/vim-tmux-navigator'
|
|
||||||
Plugin 'dense-analysis/ale'
|
|
||||||
"Plugin 'ErichDonGubler/vim-sublime-monokai'
|
|
||||||
Plugin 'flazz/vim-colorschemes'
|
|
||||||
"Plugin 'git://git.wincent.com/command-t.git'
|
|
||||||
Plugin 'gko/vim-coloresque'
|
|
||||||
Plugin 'gruvbox-community/gruvbox'
|
|
||||||
Plugin 'haya14busa/incsearch.vim'
|
|
||||||
Plugin 'junegunn/vim-easy-align'
|
|
||||||
Plugin 'justinmk/vim-sneak'
|
|
||||||
Plugin 'kana/vim-textobj-line'
|
|
||||||
Plugin 'kana/vim-textobj-user'
|
|
||||||
Plugin 'lepture/vim-jinja'
|
|
||||||
Plugin 'liuchengxu/vim-which-key'
|
|
||||||
Plugin 'dylanaraps/wal.vim'
|
|
||||||
"rainbow parenthesis
|
|
||||||
Plugin 'luochen1990/rainbow'
|
|
||||||
Plugin 'mbbill/undotree'
|
|
||||||
"muti cursor vim
|
|
||||||
Plugin 'mg979/vim-visual-multi'
|
|
||||||
Plugin 'mhinz/vim-startify'
|
|
||||||
" -------------------------------------look at this
|
|
||||||
Plugin 'patstockwell/vim-monokai-tasty'
|
|
||||||
"Plugin 'preservim/nerdcommenter'
|
|
||||||
Plugin 'preservim/nerdtree'
|
|
||||||
"Plugin 'preservim/syntastic' ----------- look at this
|
|
||||||
Plugin 'puremourning/vimspector'
|
|
||||||
Plugin 'stsewd/fzf-checkout.vim'
|
|
||||||
Plugin 'szw/vim-maximizer'
|
|
||||||
"Plugin 'rafi/awesome-vim-colorschemes'
|
|
||||||
" The sparkup vim script is in a subdirectory of this repo called vim.
|
|
||||||
" Pass the path to set the runtimepath properly.
|
|
||||||
"write html code faster
|
|
||||||
"Plugin 'rstacruz/sparkup', {'rtp': 'vim/'}
|
|
||||||
Plugin 'ryanoasis/vim-devicons'
|
|
||||||
" foldign for python
|
|
||||||
"Plugin 'tmhedberg/SimpylFold'
|
|
||||||
"desparate
|
|
||||||
"desperate
|
|
||||||
"
|
|
||||||
Plugin 'tpope/vim-abolish'
|
|
||||||
Plugin 'tpope/vim-fugitive'
|
|
||||||
Plugin 'tpope/vim-obsession'
|
|
||||||
Plugin 'tpope/vim-repeat'
|
|
||||||
Plugin 'tpope/vim-surround'
|
|
||||||
Plugin 'tpope/vim-unimpaired'
|
|
||||||
Plugin 'tpope/vim-rhubarb'
|
|
||||||
Plugin 'tomtom/tcomment_vim'
|
|
||||||
Plugin 'vim-airline/vim-airline'
|
|
||||||
Plugin 'vim-airline/vim-airline-themes'
|
|
||||||
Plugin 'vim-scripts/indentpython.vim'
|
|
||||||
Plugin 'VundleVim/Vundle.vim'
|
|
||||||
"Plugin 'xuyuanp/nerdtree git-plugin'
|
|
||||||
Plugin 'ycm-core/YouCompleteMe'
|
|
||||||
Plugin 'Yggdroot/indentLine'
|
|
||||||
call vundle#end() " required
|
|
||||||
call plug#begin()
|
|
||||||
"Plug 'luochen1990/rainbow'
|
|
||||||
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
|
|
||||||
Plug 'junegunn/fzf.vim'
|
|
||||||
call plug#end()
|
|
||||||
let g:ale_fixers = {
|
|
||||||
\ '*': ['remove_trailing_lines', 'trim_whitespace'],
|
|
||||||
\ 'python': [
|
|
||||||
\ 'add_blank_lines_for_python_control_statements',
|
|
||||||
\ 'black',
|
|
||||||
\ 'isort',
|
|
||||||
\ ],
|
|
||||||
\ 'json': [
|
|
||||||
\ 'fixjson' ,
|
|
||||||
\ ],
|
|
||||||
\ 'jinja.html': ['tidy'],
|
|
||||||
\}
|
|
||||||
|
|
||||||
let g:ale_fix_on_save = 1
|
|
||||||
let g:ale_python_flake8_options ="--ignore=E501"
|
|
||||||
|
|
||||||
source $HOME/.which-key.vim
|
|
||||||
" source $HOME/rotate.vim
|
|
||||||
nmap <silent> <C-e> <Plug>(ale_next_wrap)
|
|
||||||
|
|
||||||
" Disable tmux navigator when zooming the Vim pane
|
|
||||||
let g:tmux_navigator_disable_when_zoomed = 1
|
|
||||||
let g:tmux_navigator_no_wrap = 1
|
|
||||||
|
|
||||||
set backup " keep a backup file (restore to previous version)
|
|
||||||
set swapfile
|
|
||||||
set dir=~/.vim/tmp
|
|
||||||
set undodir=~/.vim/undo
|
|
||||||
set backupdir=~/.vim/backup
|
|
||||||
if has('persistent_undo')
|
|
||||||
set undofile " keep an undo file (undo changes after closing)
|
|
||||||
endif
|
|
||||||
|
|
||||||
let g:gruvbox_italic=1
|
|
||||||
set background=dark
|
|
||||||
colorscheme gruvbox
|
|
||||||
|
|
||||||
filetype plugin indent on
|
|
||||||
" show existing tab with 4 spaces width
|
|
||||||
augroup vimrcEx
|
|
||||||
au!
|
|
||||||
" For all text files set 'textwidth' to 78 characters.
|
|
||||||
autocmd FileType text setlocal textwidth=78
|
|
||||||
augroup END
|
|
||||||
|
|
||||||
|
|
||||||
" Add optional packages.
|
|
||||||
"
|
|
||||||
" The matchit plugin makes the % command work better, but it is not backwards
|
|
||||||
" compatible.
|
|
||||||
" The ! means the package won't be loaded right away but when plugins are
|
|
||||||
" loaded during initialization.
|
|
||||||
if has('syntax') && has('eval')
|
|
||||||
packadd! matchit
|
|
||||||
endif
|
|
||||||
|
|
||||||
|
|
||||||
"automatically start nerdtree when vim is opened
|
|
||||||
"autocmd vimenter * NERDTree
|
|
||||||
"ignore some files and dirs in nerdtree
|
|
||||||
let NERDTreeIgnore = ['\.py[cod]$', '\.egg$', '\.o$', '\~$', '__pycache__$', '\.egg-info$', 'node_modules$']
|
|
||||||
let NERDTreeDirArrowExpandable = "\u00a0" " make arrows invisible
|
|
||||||
let NERDTreeDirArrowCollapsible = "\u00a0" " make arrows invisible
|
|
||||||
let g:NERDTreeMapJumpNextSibling = '<Nop>'
|
|
||||||
let g:NERDTreeMapJumpPrevSibling = '<Nop>'
|
|
||||||
|
|
||||||
|
|
||||||
"exclude files and directories using Vim's wildignore
|
|
||||||
set wildmenu
|
|
||||||
set wildmode=longest,list
|
|
||||||
set wildignore+=*/tmp/*,*.so,*.swp,*.zip " MacOSX/Linux
|
|
||||||
set wildignore+=*\\tmp\\*,*.swp,*.zip,*.exe " Windows
|
|
||||||
set wildignore+=*.pyc
|
|
||||||
set wildignore+=*_build/*
|
|
||||||
set wildignore+=**/coverage/*
|
|
||||||
set wildignore+=**/node_modules/*
|
|
||||||
set wildignore+=**/android/*
|
|
||||||
set wildignore+=**/ios/*
|
|
||||||
set wildignore+=**/.git/*
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
let g:ycm_autoclose_preview_window_after_insertion = 1
|
|
||||||
let g:ycm_autoclose_preview_window_after_completion = 1
|
|
||||||
let g:ycm_always_populate_location_list = 1
|
|
||||||
let g:ycm_key_detailed_diagnostics = ''
|
|
||||||
|
|
||||||
let g:indentLine_concealcursor = 'inc'
|
|
||||||
let g:indentLine_conceallevel = 2
|
|
||||||
let g:indentLine_char_list = ['|', '¦', '┆', '┊']
|
|
||||||
|
|
||||||
let g:airline_powerline_fonts = 1
|
|
||||||
let g:airline_theme='deus'
|
|
||||||
let g:airline#extensions#tabline#enabled = 1 " Use the airline tabline (replacement for buftabline)
|
|
||||||
let g:airline#extensions#tabline#show_buffers = 0
|
|
||||||
let g:airline#extensions#tabline#show_splits = 0
|
|
||||||
let g:airline#extensions#tabline#show_tabs = 1
|
|
||||||
let g:airline#extensions#tabline#show_tab_nr = 0
|
|
||||||
let g:airline#extensions#tabline#show_tab_type = 0
|
|
||||||
let g:airline#extensions#tabline#close_symbol = '×'
|
|
||||||
let g:airline#extensions#tabline#show_close_button = 0
|
|
||||||
let g:airline#extensions#obsession#enabled = 1
|
|
||||||
let g:airline#extensions#obsession#indicator_text = '|🔴 REC|'
|
|
||||||
" let g:airline#extensions#obsession#indicator_text = '<✏️ >'
|
|
||||||
|
|
||||||
let g:rainbow_active = 1 "set to 0 if you want to enable it later via :RainbowToggle
|
|
||||||
"let g:ale_sign_warning = '⚠️⚠️'
|
|
||||||
" let g:ale_sign_error = "◉"
|
|
||||||
let g:ale_sign_warning = " ◉"
|
|
||||||
let g:ale_sign_error = ' ✗'
|
|
||||||
" let g:ale_sign_error = '•'
|
|
||||||
" let g:ale_sign_warning = '•'
|
|
||||||
highlight clear SignColumn
|
|
||||||
highlight ALEErrorSign ctermfg=196 guifg=#C30500
|
|
||||||
highlight ALEWarningSign ctermfg=214 guifg=#ED6237
|
|
||||||
|
|
||||||
" git gutter
|
|
||||||
let g:gitgutter_sign_added = '▌'
|
|
||||||
let g:gitgutter_sign_modified = '▌'
|
|
||||||
let g:gitgutter_sign_removed = '▁'
|
|
||||||
let g:gitgutter_sign_removed_first_line = '▌'
|
|
||||||
let g:gitgutter_sign_modified_removed = '▌'
|
|
||||||
let g:gitgutter_map_keys = 1
|
|
||||||
let g:gitgutter_realtime = 1
|
|
||||||
let g:gitgutter_preview_win_floating = 1
|
|
||||||
nmap ]h <Plug>(GitGutterNextHunk)
|
|
||||||
nmap [h <Plug>(GitGutterPrevHunk)
|
|
||||||
highlight GitutterDelete guifg=#F97CA9
|
|
||||||
highlight GitGutterAdd guifg=#BEE275
|
|
||||||
highlight GitGutterChange guifg=#96E1EF
|
|
||||||
highlight GitGutterAdd guifg=#009900 ctermfg=2
|
|
||||||
highlight GitGutterChange ctermfg=3
|
|
||||||
highlight GitGutterDelete ctermfg=1
|
|
||||||
highlight GitGutterChangeDelete ctermfg=4
|
|
||||||
|
|
||||||
" vimspector
|
|
||||||
let g:vimspector_enable_mappings = 'HUMAN'
|
|
||||||
" packadd! vimspector
|
|
||||||
nnoremap <leader>dd :call vimspector#Launch()<CR>
|
|
||||||
let g:which_key_map.d.d = 'launch debugging'
|
|
||||||
|
|
||||||
" incsearch
|
|
||||||
map / <Plug>(incsearch-forward)
|
|
||||||
map ? <Plug>(incsearch-backward)
|
|
||||||
map g/ <Plug>(incsearch-stay)
|
|
165
.which-key.vim
165
.which-key.vim
@ -1,165 +0,0 @@
|
|||||||
" Map leader to which_key
|
|
||||||
nnoremap <silent> <leader> :silent WhichKey '<Space>'<CR>
|
|
||||||
vnoremap <silent> <leader> :silent <c-u> :silent WhichKeyVisual '<Space>'<CR>
|
|
||||||
|
|
||||||
" Create map to add keys to
|
|
||||||
let g:which_key_map = {}
|
|
||||||
" Define a separator
|
|
||||||
let g:which_key_sep = '→'
|
|
||||||
set timeoutlen=500
|
|
||||||
|
|
||||||
|
|
||||||
" Not a fan of floating windows for this
|
|
||||||
let g:which_key_use_floating_win = 0
|
|
||||||
|
|
||||||
" Change the colors if you want
|
|
||||||
highlight default link WhichKey Operator
|
|
||||||
highlight default link WhichKeySeperator DiffAdded
|
|
||||||
highlight default link WhichKeyGroup Identifier
|
|
||||||
highlight default link WhichKeyDesc Function
|
|
||||||
|
|
||||||
" Hide status line
|
|
||||||
autocmd! FileType which_key
|
|
||||||
autocmd FileType which_key set laststatus=0 noshowmode noruler
|
|
||||||
\| autocmd BufLeave <buffer> set laststatus=2 noshowmode ruler
|
|
||||||
|
|
||||||
" Single mappings
|
|
||||||
let g:which_key_map['e'] = [ ':e $MYVIMRC', 'Edit .vimrc' ]
|
|
||||||
let g:which_key_map['w'] = [ ':e ~/.which-key.vim', 'Edit .which-key.vim' ]
|
|
||||||
let g:which_key_map['.'] = [ ':source $MYVIMRC', 'Source .vimrc' ]
|
|
||||||
let g:which_key_map["'"] = [ ':NERDTreeToggle', 'NerdTree' ]
|
|
||||||
let g:which_key_map['f'] = [ ':Files', 'search files' ]
|
|
||||||
let g:which_key_map['-'] = [ ':new', 'hsplit']
|
|
||||||
let g:which_key_map['n'] = [ ':Startify', 'start screen' ]
|
|
||||||
let g:which_key_map['T'] = [ ':Rg', 'search text' ]
|
|
||||||
let g:which_key_map['\'] = [ ':vnew', 'vsplit']
|
|
||||||
let g:which_key_map['j'] = [':tabprevious', 'previos tab']
|
|
||||||
let g:which_key_map['k'] = [':tabnext', 'next tab']
|
|
||||||
let g:which_key_map['='] = ['<C-W>=', 'balance windows']
|
|
||||||
let g:which_key_map['u'] = [':UndotreeToggle', 'toggle undo tree']
|
|
||||||
let g:which_key_map['a'] = ['<C-^>', 'alternate file']
|
|
||||||
|
|
||||||
|
|
||||||
" let g:which_key_map['z'] = [ 'Goyo' , 'zen' ]
|
|
||||||
|
|
||||||
" r is for resize
|
|
||||||
let g:which_key_map.r = {
|
|
||||||
\ 'name' : '+Resize-windows',
|
|
||||||
\ 'l' : [':vertical resize +5', 'increase width'],
|
|
||||||
\ 'h' : [':vertical resize -5', 'decrease width'],
|
|
||||||
\ 'k' : [':resize +5', 'increase height'],
|
|
||||||
\ 'j' : [':resize -5', 'decrease height'],
|
|
||||||
\ '=' : ['<C-W>=', 'equalize width and height'],
|
|
||||||
\ 'w' : ['<C-W>|', 'set max width'],
|
|
||||||
\ 'e' : ['<C-W>_', 'set max height'],
|
|
||||||
\ 'm' : [':MaximizerToggle', 'toggle maximize'],
|
|
||||||
\ }
|
|
||||||
|
|
||||||
" d is for debug
|
|
||||||
let g:which_key_map.d = {
|
|
||||||
\ 'name' : '+Debug',
|
|
||||||
\ 'e' : [':call vimspector#Reset()', 'exit debug mode'],
|
|
||||||
\ 'l' : [':call vimspector#StepInto()', 'step into'],
|
|
||||||
\ 'j' : [':call vimspector#StepOver()', 'step over'],
|
|
||||||
\ 'k' : [':call vimspector#StepOut()', 'step out'],
|
|
||||||
\ 'r' : [':call vimspector#Restart()', 'restart debugging'],
|
|
||||||
\ 'c' : [':call vimspector#Continue()', 'continue'],
|
|
||||||
\ 'rc' : [':call vimspector#RunToCursor()', 'run to cursor'],
|
|
||||||
\ }
|
|
||||||
" \ 'c' : [':call GoToWindow(g:vimspector_session_windows.code)', 'focus on code'],
|
|
||||||
" \ 't' : [':call GotoWindow(g:vimspector_session_windows.tagpage)', ''],
|
|
||||||
" \ 'v' : [':call GotoWindow(g:vimspector_session_windows.variables)', ''],
|
|
||||||
" \ 'w' : [':call GotoWindow(g:vimspector_session_windows.watches)', ''],
|
|
||||||
" \ 's' : [':call GotoWindow(g:vimspector_session_windows.stack_trace)', ''],
|
|
||||||
" \ 'o' : [':call GotoWindow(g:vimspector_session_windows.output)', ''],
|
|
||||||
|
|
||||||
let g:which_key_map.d.b = {
|
|
||||||
\ 'p' : [':call vimspector#ToggleBreakPoint()', 'toggle breakpoint'],
|
|
||||||
\}
|
|
||||||
|
|
||||||
" s is for search
|
|
||||||
let g:which_key_map.s = {
|
|
||||||
\ 'name' : '+search',
|
|
||||||
\ '/' : [':History/', 'history'],
|
|
||||||
\ ';' : [':Commands', 'commands'],
|
|
||||||
\ 'a' : [':Ag', 'text Ag'],
|
|
||||||
\ 'b' : [':BLines', 'current buffer'],
|
|
||||||
\ 'B' : [':Buffers', 'open buffers'],
|
|
||||||
\ 'c' : [':Commits', 'commits'],
|
|
||||||
\ 'C' : [':BCommits', 'buffer commits'],
|
|
||||||
\ 'f' : [':Files', 'files'],
|
|
||||||
\ 'g' : [':GFiles', 'git files'],
|
|
||||||
\ 'G' : [':GFiles?', 'modified git files'],
|
|
||||||
\ 'h' : [':History', 'file history'],
|
|
||||||
\ 'H' : [':History:', 'command history'],
|
|
||||||
\ 'l' : [':Lines', 'lines'],
|
|
||||||
\ 'm' : [':Marks', 'marks'],
|
|
||||||
\ 'M' : [':Maps', 'normal maps'],
|
|
||||||
\ 'p' : [':Helptags', 'help tags'],
|
|
||||||
\ 'P' : [':Tags', 'project tags'],
|
|
||||||
\ 's' : [':Snippets', 'snippets'],
|
|
||||||
\ 'S' : [':Colors', 'color schemes'],
|
|
||||||
\ 't' : [':Rg', 'text Rg'],
|
|
||||||
\ 'T' : [':BTags', 'buffer tags'],
|
|
||||||
\ 'w' : [':Windows', 'search windows'],
|
|
||||||
\ 'y' : [':Filetypes', 'file types'],
|
|
||||||
\ 'z' : [':FZF', 'FZF'],
|
|
||||||
\ }
|
|
||||||
|
|
||||||
" S is for Session
|
|
||||||
let g:which_key_map.S = {
|
|
||||||
\ 'name' : '+Session',
|
|
||||||
\ 's' : [':mksession!', 'save session'],
|
|
||||||
\ 'r' : [':source Session.vim', 'restore session'],
|
|
||||||
\ }
|
|
||||||
|
|
||||||
" t is for tabs
|
|
||||||
let g:which_key_map.t = {
|
|
||||||
\ 'name' : '+Tab',
|
|
||||||
\ 'n' : [':tabnew', 'new tab'],
|
|
||||||
\ 'c' : [':tabclose', 'close tab'],
|
|
||||||
\ 'C' : [':tabonly', 'close every other tab'],
|
|
||||||
\ 'j' : [':tabprevious', 'previos tab'],
|
|
||||||
\ 'k' : [':tabnext', 'next tab'],
|
|
||||||
\ 'h' : [':tabmove 0', 'move to beginning'],
|
|
||||||
\ ',' : [':tabmove -1', 'move left'],
|
|
||||||
\ '.' : [':tabmove +1', 'move right'],
|
|
||||||
\ 'l' : [':tabmove $', 'move to end'],
|
|
||||||
\ }
|
|
||||||
|
|
||||||
" g is for git
|
|
||||||
let g:which_key_map.g = {
|
|
||||||
\ 'name' : '+git',
|
|
||||||
\ 'B' : [':GBrowse', 'view in browser'],
|
|
||||||
\ 'd' : [':Git diff', 'diff'],
|
|
||||||
\ 'D' : [':Git diff --staged', 'diff staged'],
|
|
||||||
\ 'c' : [':GBranches', 'checkout'],
|
|
||||||
\ 'g' : [':G', 'summary'],
|
|
||||||
\ 'f' : [':GitGutterFold', 'fold'],
|
|
||||||
\ 'j' : [':GitGutterNextHunk', 'next hunk'],
|
|
||||||
\ 'k' : [':GitGutterPrevHunk', 'prev hunk'],
|
|
||||||
\ 'a' : [':diffget //3', 'diffget from left'],
|
|
||||||
\ ';' : [':diffget //2', 'diffget from right'],
|
|
||||||
\ 'l' : [':Commits', 'pretty logs'],
|
|
||||||
\ 'L' : [':Git log', 'log'],
|
|
||||||
\ 'p' : [':GitGutterPreviewHunk', 'preview hunk'],
|
|
||||||
\ 's' : [':GitGutterStageHunk', 'stage hunk'],
|
|
||||||
\ 'S' : [':Gstatus', 'status'],
|
|
||||||
\ 'u' : [':GitGutterUndoHunk', 'undo hunk'],
|
|
||||||
\ }
|
|
||||||
|
|
||||||
" " b is for buffer
|
|
||||||
" let g:which_key_map.b = {
|
|
||||||
" \ 'name' : '+buffer',
|
|
||||||
" \ 'n' : [':bnext', 'next-buffer'],
|
|
||||||
" \ 'p' : [':bprevious', 'previous-buffer'],
|
|
||||||
" \ '?' : [':Buffers', 'fzf-buffer'],
|
|
||||||
" \ }
|
|
||||||
" \ '>' : [':BufferMoveNext', 'move next'],
|
|
||||||
" \ '<' : [':BufferMovePrevious', 'move prev'],
|
|
||||||
" \ 'b' : [':BufferPick', 'pick buffer'],
|
|
||||||
" \ 'd' : [':BufferClose', 'delete-buffer'],
|
|
||||||
"
|
|
||||||
|
|
||||||
" Register which key map
|
|
||||||
call which_key#register('<Space>', "g:which_key_map")
|
|
Loading…
Reference in New Issue
Block a user