Вы находитесь на странице: 1из 5

# vim: filetype=i3

#
# EPIC i3 CONFIG !!!!
#
# Variables:
set $mod Mod4
set $wallpaper ~/Pictures/Hintergründe/dual/water_phat.png

# create workspace variables


set $workspace1 "1: "
set $workspace2 "2: "
set $workspace3 "3: "
set $workspace4 "4: "
set $workspace5 "5: "
set $workspace6 "6: "
set $workspace7 "7: "
set $workspace8 "8: "
set $workspace9 "9: "
set $workspace10 "10: "

#set windows to fixed workspace


assign [class="Steam"] $workspace10
assign [class="VirtualBox"] $workspace4
assign [class="discord"] $workspace10
assign [class="tk"] $workspace2

# font
font pango:FontAwesome, Source Code Pro 9
# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod

# binds
# gaps keybinds:
bindsym $mod+o gaps inner current plus 5
bindsym $mod+Shift+o gaps inner current minus 5
bindsym $mod+p gaps outer current plus 5
bindsym $mod+Shift+p gaps outer current minus 5
bindsym $mod+i gaps outer current set 5; gaps inner current set 15
bindsym $mod+Shift+i gaps outer current set 0; gaps inner current set 0
# gaps auto settings
gaps inner 0
gaps outer 0

# command binds
# start a terminal
bindsym $mod+Return exec --no-startup-id i3-sensible-terminal
# kill focused window
bindsym $mod+q kill
# app launcher
bindsym $mod+d exec --no-startup-id rofi -show run
# lock the screen
bindsym $mod+Shift+x exec i3lock --insidevercolor='#00000066'
--ringvercolor='#689d6abb' --insidewrongcolor='#00000066'
--ringwrongcolor='#cc241dbb' --insidecolor='#00000000' --ringcolor='#928374cc'
--linecolor='#00000000' --separatorcolor='#928374cc' --textcolor='#ebdbb2ee'
--keyhlcolor='#cc241dbb' --bshlcolor='#cc241dbb' --veriftext="Verifying..."
--wrongtext="Nope!" -i /home/timo/Pictures/Wallpapers/Wallpaper.png
# 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 --no-startup-id /home/timo/.scripts/prompt.sh "Do you
really want to leave i3?" "i3-msg exit"
# shutdown pc
bindsym $mod+Shift+Escape exec --no-startup-id /home/timo/.scripts/prompt.sh "Do
you really want to shutdown?" "shutdown -h 0"
# 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 --no-startup-id playerctl play
bindsym XF86AudioPause exec --no-startup-id playerctl pause
bindsym XF86AudioNext exec --no-startup-id playerctl next
bindsym XF86AudioPrev exec --no-startup-id playerctl previous
#brightness
bindsym XF86MonBrightnessUp exec --no-startup-id xbacklight -inc 10
bindsym XF86MonBrightnessDown exec --no-startup-id xbacklight -dec 10
#puush
bindsym Control+Shift+2 exec --no-startup-id /home/timo/.local/installs/puush/puush
-a
bindsym Control+Shift+4 exec --no-startup-id /home/timo/.local/installs/puush/puush
-b

#load application when i3 startup


#yubikey daemon
exec --no-startup-id pcscd -f
#set wallpaper
exec --no-startup-id feh --bg-scale /home/timo/Pictures/Wallpapers/Wallpaper.png

#touchpad-settings
exec --no-startup-id xinput set-prop "SynPS/2 Synaptics TouchPad" "Synaptics Tap
Time" 0
exec --no-startup-id xinput set-prop "SynPS/2 Synaptics TouchPad" "Synaptics
Scrolling Distance" -112 -112

#launch polybar
exec_always --no-startup-id $HOME/.config/polybar/launch.sh

#launch compton on startup


exec --no-startup-id compton

#launch notification service on startup


exec --no-startup-id twmnd

#launch pulseaudio
exec --no-startup-id start-pulseaudio-x11

#network manager applet


exec --no-startup-id nm-applet

#colors
hide_edge_borders both
new_window 1pixel
# class border backgr. text indicator child_border
client.focused #3c3836 #3c3836 #fbdbb2 #282828 #282828
client.focused_inactive #282828 #282828 #fbdbb2 #282828 #282828
client.unfocused #282828 #282828 #fbdbb2 #282828 #282828
client.urgent #cc241d #cc241d #fbdbb2 #282828 #282828

# bar
bar{
status_command i3blocks
position top
mode dock
modifier None
tray_output primary
tray_output DisplayPort-0
tray_output DVI-0
tray_padding 0
font pango:FontAwesome, Source Code Pro 11
colors{
background #282828
statusline #ebdbb2
separator #928374

focused_workspace #ebdbb2 #ebdbb2 #282828


active_workspace #7c6f64 #7c6f64 #ebdbb2
inactive_workspace #282828 #282828 #ebdbb2
urgent_workspace #cc241d #cc241d #ebdbb2
}
}

################################
################################
######### #########
######### BORING STUFF #########
######### #########
################################
################################

# moving around i3
# 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+Control+h split h

# split in vertical orientation


bindsym $mod+Control+v 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

# 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

# resize window (you can also use the mouse for that)
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


bindsym Return mode "default"
bindsym Escape mode "default"
}

bindsym $mod+r mode "resize"

Оценить