mirror of
https://github.com/Keyitdev/dotfiles.git
synced 2026-09-24 01:52:09 +00:00
New version: created v3
This commit is contained in:
+28
-21
@@ -13,9 +13,6 @@ font pango:Open sans 11
|
||||
# run picom
|
||||
exec_always --no-startup-id picom &
|
||||
|
||||
# render wallpaper for lockscreen
|
||||
exec_always betterlockscreen -u ~/Pictures/wallpapers/lockscreen.png --display 1 --span &
|
||||
|
||||
# run mpd
|
||||
exec_always --no-startup-id mpd &
|
||||
|
||||
@@ -23,7 +20,7 @@ exec_always --no-startup-id mpd &
|
||||
exec_always --no-startup-id dunst &
|
||||
|
||||
# set wallpaper with fed
|
||||
exec_always feh --bg-scale $HOME/Pictures/wallpapers/current_blue.png
|
||||
exec_always feh --no-fehbg --bg-scale $HOME/Pictures/wallpapers/background.png
|
||||
|
||||
# launch polybar
|
||||
exec_always --no-startup-id killall -q
|
||||
@@ -41,7 +38,7 @@ exec --no-startup-id nm-applet
|
||||
floating_modifier $mod
|
||||
|
||||
# start a terminal
|
||||
bindsym $mod+Return exec kitty
|
||||
bindsym $mod+Return exec alacritty
|
||||
|
||||
# kill focused window
|
||||
bindsym $mod+Shift+q kill
|
||||
@@ -84,6 +81,10 @@ bindsym $mod+q layout stacking
|
||||
bindsym $mod+w layout tabbed
|
||||
bindsym $mod+e layout toggle split
|
||||
|
||||
# save and restore layout with i3-resurrect
|
||||
bindsym $mod+t exec --no-startup-id i3-resurrect restore
|
||||
bindsym $mod+y exec --no-startup-id i3-resurrect save
|
||||
|
||||
# toggle tiling / floating
|
||||
bindsym $mod+Shift+space floating toggle
|
||||
|
||||
@@ -91,7 +92,7 @@ bindsym $mod+Shift+space floating toggle
|
||||
bindsym $mod+space focus mode_toggle
|
||||
|
||||
# run lockscreen
|
||||
bindsym $mod+i exec betterlockscreen -l
|
||||
bindsym $mod+i exec lock
|
||||
|
||||
# monitor settings
|
||||
bindsym $mod+n exec xrandr --auto --output eDP-1 --mode 1920x1080 --right-of HDMI-1 && i3-msg restart &
|
||||
@@ -111,38 +112,42 @@ bindsym $mod+b move workspace to output right
|
||||
#bindsym $mod+d focus child
|
||||
|
||||
# run rofi programs
|
||||
bindsym $mod+a exec "rofi -show drun -no-default-config -config ~/.config/rofi/sidebar.rasi"
|
||||
bindsym $mod+d exec "rofi -show drun -no-default-config -config ~/.config/rofi/center.rasi"
|
||||
bindsym $mod+s exec "rofi -show drun -no-default-config -config ~/.config/rofi/compact.rasi"
|
||||
bindsym $mod+z exec "rofi -show -modi ':rofi-bookmarks' -no-default-config -config ~/.config/rofi/compact.rasi"
|
||||
bindsym $mod+x exec "theme"
|
||||
bindsym $mod+a exec "rofi -show window -no-default-config -config ~/.config/rofi/main.rasi"
|
||||
bindsym $mod+d exec "rofi -show drun -no-default-config -config ~/.config/rofi/main.rasi"
|
||||
bindsym $mod+s exec "rofi -show drun -no-default-config -config ~/.config/rofi/full_screen.rasi"
|
||||
bindsym $mod+z exec "rofi -show -modi ':rofi-bookmarks' -no-default-config -config ~/.config/rofi/main.rasi"
|
||||
bindsym $mod+c exec "rofi-screenshot"
|
||||
|
||||
# take a screenshot
|
||||
bindsym Pause exec screenshot -crtf
|
||||
bindsym Print exec screenshot -cstf
|
||||
bindsym Pause exec screenshot -sa
|
||||
bindsym Print exec screenshot -sf
|
||||
|
||||
# brightness control
|
||||
exec_always --no-startup-id light -I
|
||||
bindsym XF86MonBrightnessUp exec light -A 2 && light -O# increase screen brightness && brightness &
|
||||
bindsym XF86MonBrightnessDown exec light -U 2 && light -O# decrease screen brightness && brightness &
|
||||
bindsym XF86MonBrightnessUp exec light -A 2 && light -O && brightness &
|
||||
bindsym XF86MonBrightnessDown exec light -U 2 && light -O && brightness &
|
||||
|
||||
# brightness control hdmi
|
||||
bindsym Ctrl+F7 exec brightness_hdmi down
|
||||
bindsym Ctrl+F8 exec brightness_hdmi up
|
||||
|
||||
# audio control
|
||||
bindsym XF86AudioRaiseVolume exec --no-startup-id amixer -D pulse sset Master 5%+ && volume &
|
||||
bindsym XF86AudioLowerVolume exec --no-startup-id amixer -D pulse sset Master 5%- && volume &
|
||||
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && mute &
|
||||
#bindsym XF86AudioMicMute exec --no-startup-id amixer -D pulse sset Master 5%+ && volume.sh &
|
||||
#bindsym XF86AudioMicMute exec --no-startup-id amixer -D pulse sset Master 5%+ && volume &
|
||||
|
||||
# turn off screen
|
||||
bindsym XF86ScreenSaver exec xset dpms force off
|
||||
bindsym XF86ScreenSaver exec xset dpms force off
|
||||
|
||||
# :)
|
||||
bindsym ctrl + F1 exec --no-startup-id kitty
|
||||
bindsym ctrl + F1 exec --no-startup-id alacritty
|
||||
bindsym ctrl + F5 exec --no-startup-id kitty
|
||||
bindsym ctrl + F2 exec --no-startup-id dmenu_run
|
||||
|
||||
# toggle microphone
|
||||
bindsym ctrl + F3 exec amixer set Capture cap && dunstify -a "Microphone" "Microphone" "Microphone is now unmuted" -r 100 -i /usr/local/bin/icons/mic.svg
|
||||
bindsym ctrl + F4 exec amixer set Capture nocap && dunstify -a "Microphone" "Microphone" "Microphone is now muted" -r 100 -i /usr/local/bin/icons/mic-off.svg
|
||||
bindsym ctrl + F3 exec amixer set Capture nocap && dunstify -a "Microphone" "Microphone" "Microphone is muted" -r 100 -i /usr/local/bin/icons/mic-off.svg
|
||||
bindsym ctrl + F4 exec amixer set Capture cap && dunstify -a "Microphone" "Microphone" "Microphone is unmuted" -r 100 -i /usr/local/bin/icons/mic.svg
|
||||
|
||||
# toggle touchpad
|
||||
bindsym ctrl + F9 exec xinput set-prop 15 "Device Enabled" 0 && dunstify -a "Touchpad" "Touchpad" "Touchpad is disabled" -r 100
|
||||
@@ -186,8 +191,10 @@ bindsym $mod+Shift+0 move container to workspace number $ws10
|
||||
|
||||
# reload the configuration file
|
||||
bindsym $mod+Shift+c reload
|
||||
|
||||
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
|
||||
bindsym $mod+Shift+r restart
|
||||
|
||||
# exit i3 (logs you out of your X session)
|
||||
bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'"
|
||||
|
||||
@@ -221,7 +228,7 @@ bindsym $mod+r mode "resize"
|
||||
### BODERS ###
|
||||
|
||||
#border width
|
||||
default_border pixel 4
|
||||
default_border pixel 2
|
||||
|
||||
#border colors
|
||||
client.focused #343746 #343746 #F8F8F2 #343746 #343746
|
||||
|
||||
Reference in New Issue
Block a user