mirror of
https://git.korhonen.cc/FunctionalHacker/dotfiles.git
synced 2024-11-04 18:00:20 +00:00
b1335a3628
Signed-off-by: Marko Korhonen <marko.korhonen@reekynet.com>
133 lines
4.0 KiB
Plaintext
133 lines
4.0 KiB
Plaintext
# ~/.config/i3/config
|
|
set $mod mod4
|
|
set $term alacritty
|
|
|
|
bindsym $mod+d exec --no-startup-id rofi -show-icons -show drun -config /home/reekymarko/.config/rofi/config
|
|
|
|
font pango:System San Francisco Display 11
|
|
|
|
new_window 1pixel
|
|
hide_edge_borders vertical
|
|
|
|
# Use Mouse+$mod to drag floating windows to their wanted position
|
|
floating_modifier $mod
|
|
|
|
# start a terminal
|
|
bindsym $mod+Return exec --no-startup-id $term
|
|
|
|
# kill focused window
|
|
bindsym $mod+w kill
|
|
|
|
# change focus
|
|
bindsym $mod+h focus left
|
|
bindsym $mod+j focus down
|
|
bindsym $mod+k focus up
|
|
bindsym $mod+l focus right
|
|
|
|
# alternatively, you can use the cursor keys:
|
|
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
|
|
|
|
# alternatively, you can use the cursor keys:
|
|
bindsym $mod+Shift+Left move left
|
|
bindsym $mod+Shift+Down move down
|
|
bindsym $mod+Shift+Up move up
|
|
bindsym $mod+Shift+Right move right
|
|
|
|
# split in horizontal orientation
|
|
bindsym $mod+y split h
|
|
|
|
# split in vertical orientation
|
|
bindsym $mod+x split v
|
|
|
|
# enter fullscreen mode for the focused container
|
|
bindsym $mod+f fullscreen toggle
|
|
|
|
# change container layout (stacked, tabbed, toggle split)
|
|
bindsym $mod+s layout stacking
|
|
bindsym $mod+w layout tabbed
|
|
bindsym $mod+e layout toggle split
|
|
|
|
# toggle tiling / floating
|
|
bindsym $mod+Shift+space floating toggle
|
|
|
|
# change focus between tiling / floating windows
|
|
bindsym $mod+space focus mode_toggle
|
|
# focus the parent container
|
|
bindsym $mod+a focus parent
|
|
|
|
focus_follows_mouse no
|
|
|
|
# focus the child container
|
|
#bindsym $mod+d focus child
|
|
|
|
# open with clipboard contents
|
|
bindsym $mod+v exec --no-startup-id mpv --ytdl-format="bestvideo[ext=mp4][height<=?1080]+bestaudio[ext=m4a]" $(xclip -o)
|
|
bindym $mod+Shift+b exec --no-startup-id firefox-nightly $(xclip -o)
|
|
|
|
#workspace names
|
|
set $workspace1 "1: Start "
|
|
set $workspace2 "2"
|
|
set $workspace3 "3"
|
|
set $workspace4 "4"
|
|
set $workspace5 "5"
|
|
set $workspace6 "6"
|
|
set $workspace7 "7"
|
|
set $workspace8 "8: Mail "
|
|
set $workspace9 "9: Messaging "
|
|
set $workspace10 "10: Music "
|
|
|
|
# switch to workspace
|
|
bindsym $mod+1 workspace $workspace1
|
|
bindsym $mod+2 workspace $workspace2
|
|
bindsym $mod+3 workspace $workspace3
|
|
bindsym $mod+4 workspace $workspace4
|
|
bindsym $mod+5 workspace $workspace5
|
|
bindsym $mod+6 workspace $workspace6
|
|
bindsym $mod+7 workspace $workspace7
|
|
bindsym $mod+8 workspace $workspace8
|
|
bindsym $mod+9 workspace $workspace9
|
|
bindsym $mod+0 workspace $workspace10
|
|
|
|
# move focused container to workspace
|
|
bindsym $mod+Shift+1 move container to workspace $workspace1
|
|
bindsym $mod+Shift+2 move container to workspace $workspace2
|
|
bindsym $mod+Shift+3 move container to workspace $workspace3
|
|
bindsym $mod+Shift+4 move container to workspace $workspace4
|
|
bindsym $mod+Shift+5 move container to workspace $workspace5
|
|
bindsym $mod+Shift+6 move container to workspace $workspace6
|
|
bindsym $mod+Shift+7 move container to workspace $workspace7
|
|
bindsym $mod+Shift+8 move container to workspace $workspace8
|
|
bindsym $mod+Shift+9 move container to workspace $workspace9
|
|
bindsym $mod+Shift+0 move container to workspace $workspace10
|
|
|
|
# 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 --no-startup-id i3-msg exit
|
|
|
|
|
|
# pulseaudio controls
|
|
bindsym XF86AudioRaiseVolume exec --no-startup-id amixer -D pulse sset Master 5%+ # increase sound volume
|
|
bindsym XF86AudioLowerVolume exec --no-startup-id amixer -D pulse sset Master 5%- # decrease sound volume
|
|
bindsym XF86AudioMute exec --no-startup-id amixer -D pulse set Master 1+ toggle # mute sound
|
|
|
|
# open browser
|
|
bindsym $mod+b exec --no-startup-id firefox-nightly
|
|
|
|
# window rules
|
|
for_window [class="Steam"] move to workspace $workspace2
|
|
|
|
# autostart applications
|
|
exec --no-startup-id setxkbmap eu
|
|
exec --no-startup-id steam-native
|
|
exec --no-startup-id kodi
|