mirror of
https://github.com/Stunkymonkey/dotfiles.git
synced 2025-05-25 19:14:39 +02:00

In some occasions, albert loses focus, but does not close itself. By then, it's still visible and the "show" command does not work. If this occurs, toggle behaves better, as albert will disappear on the first execution and appear **with** focus on the second one. "show" would do nothing and you would have grab your mouse to focus albert again. For the normal use case, "toggle" and "show" work the same.
263 lines
9.3 KiB
Text
263 lines
9.3 KiB
Text
set $mod Mod4
|
|
floating_modifier $mod
|
|
|
|
# keyboard layout
|
|
exec setxkbmap de -option ctrl:nocaps
|
|
|
|
# background
|
|
exec --no-startup-id xsetroot -solid "#2F343F"
|
|
#exec --no-startup-id hsetroot -center ~/.wallpaper
|
|
|
|
# startup programs
|
|
exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
|
|
exec --no-startup-id nm-applet
|
|
exec --no-startup-id gnome-keyring-daemon --start --components secrets
|
|
exec --no-startup-id feedreader --headless
|
|
exec --no-startup-id ~/.local/bin/xmon default
|
|
exec --no-startup-id ~/.local/bin/lockscreen -d
|
|
exec --no-startup-id albert
|
|
exec --no-startup-id nextcloud
|
|
exec --no-startup-id syncthing-gtk
|
|
exec --no-startup-id telegram-desktop -startintray
|
|
exec --no-startup-id redshift-gtk
|
|
exec --no-startup-id rhythmbox
|
|
|
|
# font
|
|
font pango:Fira Sans Mono 12
|
|
|
|
# make some windows floating
|
|
for_window [class="Firefox" window_role="About"] floating enable
|
|
for_window [class="Nightly" window_role="About"] floating enable
|
|
for_window [title="^pdfpc - present"] move to output right, fullscreen
|
|
|
|
# Stick windows to workspaces
|
|
assign [class="Feedreader"] 8
|
|
for_window [class="Feedreader"] move workspace 8
|
|
assign [class="Evolution"] 9
|
|
for_window [class="Evolution"] move workspace 9
|
|
assign [class="Thunderbird"] 9
|
|
for_window [class="Thunderbird"] move workspace 9
|
|
assign [class="Rhythmbox"] 10
|
|
for_window [class="Rhythmbox"] move workspace 10
|
|
|
|
hide_edge_borders both
|
|
focus_follows_mouse no
|
|
|
|
# to switch workspace-tabs
|
|
bindsym $mod+Tab workspace next
|
|
bindsym Shift+$mod+Tab workspace prev
|
|
|
|
bindsym $mod+m exec keepassx2
|
|
bindsym $mod+e exec subl3
|
|
bindsym $mod+w exec firefox
|
|
bindsym $mod+u exec feedreader
|
|
|
|
# to prevent gnome-help
|
|
bindsym F1 exec :
|
|
|
|
# ESP8266
|
|
bindsym $mod+F1 exec curl http://esp8266.local/socket0Toggle
|
|
bindsym $mod+Shift+F1 exec curl http://esp8266.local/socket0Off
|
|
bindsym $mod+F2 exec curl http://esp8266.local/socket1Toggle
|
|
bindsym $mod+Shift+F2 exec curl http://esp8266.local/socket1Off
|
|
|
|
bindsym $mod+F11 exec curl http://esp8266.local/socket2Toggle
|
|
bindsym $mod+Shift+F11 exec curl http://esp8266.local/socket2Off
|
|
bindsym $mod+F12 exec curl http://esp8266.local/socket3Toggle
|
|
bindsym $mod+Shift+F12 exec curl http://esp8266.local/socket3Off
|
|
|
|
# Screenshot
|
|
bindsym Print exec "scrot ~/Downloads/Screenshot%Y-%m-%d-%H:%M:%S.png -z"
|
|
bindsym Scroll_Lock exec ~/.local/bin/lockscreen -fl
|
|
|
|
# forward an backward at arrow-keys
|
|
bindsym --release XF86Back exec --no-startup-id xdotool key --clearmodifiers Ctrl+Page_Up
|
|
bindsym --release XF86Forward exec --no-startup-id xdotool key --clearmodifiers Ctrl+Page_Down
|
|
|
|
|
|
# Sreen brightness controls
|
|
#increase screen brightness
|
|
bindsym XF86MonBrightnessUp exec xbacklight -inc 10
|
|
#decrease screen brightness
|
|
bindsym XF86MonBrightnessDown exec xbacklight -dec 10
|
|
|
|
# Touchpad controls
|
|
#bindsym XF86TouchpadToggle exec /some/path/toggletouchpad.sh # toggle touchpad
|
|
|
|
# Pulse Audio controls
|
|
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +5% #increase sound volume
|
|
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -5% #decrease sound volume
|
|
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle # mute sound
|
|
|
|
# Media player controls
|
|
bindsym XF86AudioPlay exec dbus-send --type=method_call --dest=org.mpris.MediaPlayer2.rhythmbox /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause
|
|
bindsym XF86AudioPause exec dbus-send --type=method_call --dest=org.mpris.MediaPlayer2.rhythmbox /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause
|
|
bindsym XF86AudioNext exec dbus-send --type=method_call --dest=org.mpris.MediaPlayer2.rhythmbox /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next
|
|
bindsym XF86AudioPrev exec dbus-send --type=method_call --dest=org.mpris.MediaPlayer2.rhythmbox /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous
|
|
|
|
# Microphone
|
|
bindsym XF86AudioMicMute exec pulseaudio-ctl mute-input #toggle
|
|
|
|
#firefox bughelper
|
|
bindsym $mod+^ floating toggle; floating toggle;
|
|
|
|
# main commands
|
|
bindsym $mod+Shift+c reload
|
|
bindsym $mod+Shift+r restart
|
|
bindsym $mod+Shift+e exit
|
|
|
|
# start a terminal
|
|
bindsym $mod+Return exec TERMINAL=gnome-terminal i3-sensible-terminal
|
|
|
|
# screensaver
|
|
bindsym $mod+z exec ~/.local/bin/lockscreen -fl
|
|
bindsym $mod+y exec ~/.local/bin/lockscreen -fl
|
|
|
|
# start dmenu (a program launcher)
|
|
bindsym $mod+Shift+d exec --no-startup-id i3-dmenu-desktop --entry-type=command
|
|
bindsym $mod+d exec --no-startup-id albert toggle || albert
|
|
|
|
# kill focused window
|
|
bindsym $mod+Shift+q kill
|
|
|
|
# enter fullscreen mode for the focused container
|
|
bindsym $mod+f fullscreen toggle
|
|
bindsym $mod+g fullscreen global
|
|
|
|
# change layouts
|
|
bindsym $mod+b split h
|
|
bindsym $mod+v split v
|
|
bindsym $mod+c layout toggle split
|
|
#bindsym $mod+z layout stacking
|
|
#bindsym $mod+t layout tabbed
|
|
|
|
# toggle tiling / floating
|
|
bindsym $mod+Shift+space floating toggle
|
|
#bindsym $mod+space focus mode_toggle
|
|
bindsym $mod+space exec setxkbmap de -option ctrl:nocaps
|
|
# focus the child container
|
|
bindsym $mod+s focus child
|
|
# focus the parent container
|
|
bindsym $mod+a focus parent
|
|
|
|
bindsym Mod1+Left move workspace to output left
|
|
bindsym Mod1+Right move workspace to output right
|
|
bindsym Mod1+Up move workspace to output up
|
|
bindsym Mod1+Down move workspace to output down
|
|
|
|
# switch to workspace
|
|
bindsym $mod+1 workspace 1
|
|
bindsym $mod+2 workspace 2
|
|
bindsym $mod+3 workspace 3
|
|
bindsym $mod+4 workspace 4
|
|
bindsym $mod+5 workspace 5
|
|
bindsym $mod+6 workspace 6
|
|
bindsym $mod+7 workspace 7
|
|
bindsym $mod+8 workspace 8
|
|
bindsym $mod+9 workspace 9
|
|
bindsym $mod+0 workspace 10
|
|
|
|
# move focused container to workspace
|
|
bindsym $mod+Shift+1 move container to workspace 1
|
|
bindsym $mod+Shift+2 move container to workspace 2
|
|
bindsym $mod+Shift+3 move container to workspace 3
|
|
bindsym $mod+Shift+4 move container to workspace 4
|
|
bindsym $mod+Shift+5 move container to workspace 5
|
|
bindsym $mod+Shift+6 move container to workspace 6
|
|
bindsym $mod+Shift+7 move container to workspace 7
|
|
bindsym $mod+Shift+8 move container to workspace 8
|
|
bindsym $mod+Shift+9 move container to workspace 9
|
|
bindsym $mod+Shift+0 move container to workspace 10
|
|
|
|
# move windows to workspace and switch to it
|
|
bindsym Ctrl+1 move container to workspace 1; workspace 1
|
|
bindsym Ctrl+2 move container to workspace 2; workspace 2
|
|
bindsym Ctrl+3 move container to workspace 3; workspace 3
|
|
bindsym Ctrl+4 move container to workspace 4; workspace 4
|
|
bindsym Ctrl+5 move container to workspace 5; workspace 5
|
|
bindsym Ctrl+6 move container to workspace 6; workspace 6
|
|
bindsym Ctrl+7 move container to workspace 7; workspace 7
|
|
bindsym Ctrl+8 move container to workspace 8; workspace 8
|
|
bindsym Ctrl+9 move container to workspace 9; workspace 9
|
|
# for settings the zoom-level back to default in firefox
|
|
#bindsym Ctrl+0 move container to workspace 10; workspace 10
|
|
|
|
bindsym $mod+n exec i3-input -F 'rename workspace to "%s"' -P 'New name: '
|
|
|
|
#FOCUS
|
|
bindsym $mod+h focus left
|
|
bindsym $mod+j focus down
|
|
bindsym $mod+k focus up
|
|
bindsym $mod+l focus right
|
|
bindsym $mod+Left focus left
|
|
bindsym $mod+Down focus down
|
|
bindsym $mod+Up focus up
|
|
bindsym $mod+Right focus right
|
|
|
|
# move focused window
|
|
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+Shift+Left move left
|
|
bindsym $mod+Shift+Down move down
|
|
bindsym $mod+Shift+Up move up
|
|
bindsym $mod+Shift+Right move right
|
|
|
|
# resize window (you can also use the mouse for that)
|
|
mode "resize" {
|
|
bindsym h resize shrink width 10 px or 10 ppt
|
|
bindsym j resize shrink height 10 px or 10 ppt
|
|
bindsym k resize grow height 10 px or 10 ppt
|
|
bindsym l resize grow width 10 px or 10 ppt
|
|
|
|
bindsym Left resize shrink width 10 px or 10 ppt
|
|
bindsym Up resize grow height 10 px or 10 ppt
|
|
bindsym Down resize shrink height 10 px or 10 ppt
|
|
bindsym Right resize grow width 10 px or 10 ppt
|
|
|
|
bindsym Return mode "default"
|
|
bindsym Escape mode "default"
|
|
bindsym $mod+r mode "default"
|
|
}
|
|
bindsym $mod+r mode "resize"
|
|
|
|
mode "passthrough" {
|
|
bindsym Mod4+Escape mode "default"
|
|
}
|
|
bindsym Mod4+Escape mode "passthrough"
|
|
|
|
# colors
|
|
set $bg-color #2F343F
|
|
set $inactive-bg-color #2F343F
|
|
set $text-color #F3F4F5
|
|
set $inactive-text-color #676E7D
|
|
set $urgent-bg-color #E53935
|
|
set $indicator-color #00FF00
|
|
|
|
set $workspace-color #5294E2
|
|
set $inactive-workspace #2F343F
|
|
set $seperator-color #666666
|
|
set $ws-text-color #FFFFFF
|
|
set $ws-inactive-text-color #D3DAE3
|
|
|
|
# window colors
|
|
client.focused $bg-color $bg-color $text-color $indicator-color
|
|
client.unfocused $inactive-bg-color $inactive-bg-color $inactive-text-color $indicator-color
|
|
client.focused_inactive $inactive-bg-color $inactive-bg-color $inactive-text-color $indicator-color
|
|
client.urgent $urgent-bg-color $urgent-bg-color $text-color $indicator-color
|
|
|
|
bar {
|
|
status_command i3status
|
|
position top
|
|
workspace_buttons yes
|
|
colors {
|
|
background $bg-color
|
|
statusline $ws-inactive-text-color
|
|
separator $seperator-color
|
|
focused_workspace $workspace-color $workspace-color $ws-text-color
|
|
active_workspace $inactive-workspace $inactive-workspace $ws-inactive-text-color
|
|
inactive_workspace $inactive-workspace $inactive-workspace $ws-inactive-text-color
|
|
urgent_workspace $urgent-bg-color $urgent-bg-color $ws-text-color
|
|
}
|
|
}
|