Update i3, polybar, emacs, qtile, zsh & sctipts

This commit is contained in:
Smirnov Olexandr 2021-01-02 21:48:35 +02:00
parent 8822c65b4f
commit 102aa36798
15 changed files with 152 additions and 140 deletions

View file

@ -25,12 +25,12 @@ exec --no-startup-id exec picom --experimental-backends -b
exec --no-startup-id exec nitrogen --restore
exec --no-startup-id exec setxkbmap "us,ua" ",winkeys" "grp:alt_shift_toggle" -option "ctrl:nocaps"
exec --no-startup-id exec org.telegram.desktop
exec --no-startup-id exec /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
exec_always --no-startup-id exec xautolock -time 3 -locker "betterlockscreen --off 180 -t \"Computer is lockerd\" -l"
exec --no-startup-id exec lxsession
exec --no-startup-id exec xautolock -time 3 -locker "betterlockscreen --off 180 -t \"Computer is lockerd\" -l"
exec_always --no-startup-id exec $HOME/.config/i3/bar.sh
exec --no-startup-id exec discord
#exec --no-startup-id exec conky
#exec --no-startup-id exec redshift-gtk
#exec --no-startup-id exec discord
############## WM keys ############
@ -60,11 +60,11 @@ bindsym $mod+grave scratchpad show, floating disable
############## User key ###########
# Menus
bindsym $mod+Shift+apostrophe exec "rofi -show run"
bindsym $mod+Shift+Return exec "rofi -show drun"
bindsym $mod+Escape exec ~/.script/dmenu/dmenu-power.sh -h 24
bindsym $mod+Control+u exec ~/.script/dmenu/dmenu-config-edit.sh -h 24
bindsym $mod+Control+i exec passmenu -h 24 -p Passwords
bindsym $mod+Shift+apostrophe exec "rofi -location 6 -show run"
bindsym $mod+Shift+Return exec "rofi -location 6 -show drun"
bindsym $mod+Escape exec ~/.script/dmenu/dmenu-power.sh -b -h 24
bindsym $mod+Control+u exec ~/.script/dmenu/dmenu-config-edit.sh -b -h 24
bindsym $mod+Control+i exec passmenu -b -h 24 -p Passwords
# Apps
bindsym $mod+Return exec $terminal
@ -84,11 +84,11 @@ bindsym $mod+minus exec "pactl set-sink-volume alsa_output.pci-0000_00_1b.0.anal
bindsym $mod+Shift+minus exec "pactl set-sink-mute alsa_output.pci-0000_00_1b.0.analog-stereo toggle"
######### Window preferens ########
assign [class="(?i)firefox|qutebrowser"] $ws2
assign [class="(?i)telegram|discord|viber"] $ws6
assign [class="(?i)telegram|discord"] $ws6
for_window [class="(?i)telegram|discord"] layout tabbed
#focus_on_window_activation focus
########## Change focus ##########
########## Change focus ###########
bindsym $mod+h focus left
bindsym $mod+Left focus left
bindsym $mod+j focus down
@ -109,14 +109,14 @@ bindsym $mod+Shift+l move right
bindsym $mod+Shift+Right move right
########## Resize window ##########
bindsym $mod+Control+h resize shrink width 20 px or 20 ppt
bindsym $mod+Control+Left resize shrink width 20 px or 20 ppt
bindsym $mod+Control+j resize grow height 20 px or 20 ppt
bindsym $mod+Control+Down resize grow height 20 px or 20 ppt
bindsym $mod+Control+k resize shrink height 20 px or 20 ppt
bindsym $mod+Control+Up resize shrink height 20 px or 20 ppt
bindsym $mod+Control+l resize grow width 20 px or 20 ppt
bindsym $mod+Control+Right resize grow width 20 px or 20 ppt
bindsym $mod+Control+h resize shrink width 5 px or 5 ppt
bindsym $mod+Control+Left resize shrink width 5 px or 5 ppt
bindsym $mod+Control+j resize grow height 5 px or 5 ppt
bindsym $mod+Control+Down resize grow height 5 px or 5 ppt
bindsym $mod+Control+k resize shrink height 5 px or 5 ppt
bindsym $mod+Control+Up resize shrink height 5 px or 5 ppt
bindsym $mod+Control+l resize grow width 5 px or 5 ppt
bindsym $mod+Control+Right resize grow width 5 px or 5 ppt
############ Workspaces ###########
set $ws1 "1"

View file

@ -37,7 +37,7 @@ call plug#end()
" Colors
set termguicolors
set background=dark
colorscheme nten16
colo nten16
set t_Co=256
" Syntax & line numbars

View file

@ -9,7 +9,7 @@ shadow-offset-y = -7;
shadow-exclude = [
"override_redirect",
"class_g = 'Firefox' && argb",
"class_g = 'Polybar'"
#"class_g = 'Polybar'"
];
############ Fading ###########
@ -27,10 +27,10 @@ opacity-rule = [ "0:_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'" ];
no-fading-openclose = true
##### Background-Blurring #####
blur-method = "dual_kawase";
blur-strength = 5;
blur-kern = "3x3box";
blur-background-exclude = [];
#blur-method = "dual_kawase";
#blur-strength = 5;
#blur-kern = "3x3box";
#blur-background-exclude = [];
####### General Settings ######

View file

@ -11,6 +11,7 @@ alert = #FF6C6B
[bar/i3bar]
width = 100%
height = 24
bottom = true
fixed-center = true
wm-restack = i3
background = ${colors.background}
@ -20,7 +21,7 @@ module-margin-right = 1
font-0 = Iosevka Nerd Font:style=Medium:size=8;3
font-1 = FontAwesome5Free:style=Solid:size=7.5;2.5
font-2 = Weather Icons:size=7;2
modules-left = i3 pacman-up
modules-left = i3 menu pacman-up window-name
modules-right = keyboard pulseaudio backlight wifi-signal time date
tray-position = right
@ -104,6 +105,10 @@ type = custom/script
exec = ~/.config/polybar/scripts/updates-pacman-aur.sh
interval = 60
[module/window-name]
type = internal/xwindow
label-maxlen = 100
[module/keyboard]
type = internal/xkeyboard
format-prefix = ""
@ -112,6 +117,22 @@ blacklist-0 = num lock
blacklist-1 = scroll lock
blacklist-2= caps lock
[module/menu]
type = custom/menu
format = <label-toggle> <menu>
format-padding = 1
format-spacing = 2
label-open = 
label-close = 
menu-0-0 = 
menu-0-0-exec = thunar
menu-0-1 = 
menu-0-1-exec = firefox
menu-0-2 = 
menu-0-2-exec = alacritty
menu-0-3 = 
menu-0-3-exec = emacs
[module/date]
type = internal/date
interval = 600

View file

@ -44,14 +44,6 @@ keys = [
lazy.spawn(filemanager),
desc="Launch filemanager"
),
Key([mod, "shift"], "f",
lazy.spawn("dmenufm"),
desc="Launch dmenu filemanager"
),
Key([mod, alt], "t",
lazy.spawn(f"{terminal} -e nvim /home/{user}/.todo"),
desc="Open ~/.todo file in nvim"
),
# Window control
Key([mod], "q",
@ -137,11 +129,11 @@ keys = [
# Menus(dmenu or/and rofi)
Key([mod, "shift"], "Return",
lazy.spawn("rofi -show drun"),
lazy.spawn("rofi -location 2 -show drun"),
desc="(Rofi) Program launcher"
),
Key([mod, "shift"], "apostrophe",
lazy.spawn("rofi -show run"),
lazy.spawn("rofi -location 2 -show run"),
desc="(Rofi) Program launcher"
),
Key([mod],"Escape",

View file

@ -7,7 +7,7 @@
selected-foreground: #ffffff;
}
#window {
location: north;
/* location: north; */
width: 100%;
height: 24px;
padding: 0px;