This commit is contained in:
Johannes Loher 2020-09-14 15:53:25 +02:00
parent e19f602e00
commit f5653545dd
2 changed files with 49 additions and 38 deletions

View file

@ -32,8 +32,12 @@ input 9456:311:Metadot_-_Das_Keyboard_Das_Keyboard_Model_S xkb_model "pc105"
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
output eDP-1 pos 0 0 res 3840x2400 scale 2 output eDP-1 pos 0 0 res 3840x2400 scale 2
output DP-3 pos 1920 0 res 1920x120 output DP-3 pos 1920 0 res 1920x120
output * bg /usr/share/backgrounds/custom/mountain.jpg fill output * bg /usr/share/backgrounds/custom/mountain.jpg fill
bindswitch --reload --locked lid:on output eDP-1 disable
bindswitch --reload --locked lid:off output eDP-1 enable
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
# Font # Font
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
@ -173,9 +177,6 @@ bindsym $mod+Mod1+Left move workspace to output left
# reload the configuration file # reload the configuration file
bindsym $mod+Shift+c reload bindsym $mod+Shift+c reload
# restart sway inplace (preserves your layout/session, can be used to upgrade sway)
bindsym $mod+Shift+r restart
# exit sway (logs you out of your Wayland session) # exit sway (logs you out of your Wayland session)
bindsym $mod+Shift+e exec "swaynag -f 'pango:$font' -t warning -m 'sway beenden?' -b 'Ja' 'swaymsg exit'" bindsym $mod+Shift+e exec "swaynag -f 'pango:$font' -t warning -m 'sway beenden?' -b 'Ja' 'swaymsg exit'"
@ -208,15 +209,14 @@ bindsym XF86Display exec --no-startup-id /usr/local/bin/monitor
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
# Assignment of progrmans to workspaces # Assignment of progrmans to workspaces
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
assign [class="^Termite$"] $workspace1 assign [app_id="^termite$"] $workspace1
assign [class="^Subl3$"] $workspace2 assign [class="^code-oss$"] $workspace2
assign [class="^Code$"] $workspace2 assign [class="^jetbrains-idea$"] $workspace2
assign [class="^Chromium$"] $workspace3 assign [class="^firefox$"] $workspace3
assign [class="^Nightly$"] $workspace3
assign [class="^Firefox$"] $workspace3
assign [class="^Thunderbird$"] $workspace4 assign [class="^Thunderbird$"] $workspace4
assign [class="^Thunar$"] $workspace5 assign [app_id="^thunar$"] $workspace5
assign [class="^plexmediaplayer$"] $workspace6 assign [class="^Slack$"] 8
assign [class="^Microsoft Teams - Preview$"] 9
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
# Screenshot shortcuts # Screenshot shortcuts
@ -237,33 +237,14 @@ bindsym XF86WLAN exec --no-startup-id pkill -SIGRTMIN+12 i3blocks
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
# Lockscreen # Lockscreen
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
exec --no-startup-id xss-lock -- i3lock \ exec --no-startup-id swayidle -w \
--insidevercolor=282c34ff \ timeout 300 'swaylock -f' \
--ringvercolor=61afefff \ timeout 600 'swaymsg "output * dpms off"' \
\ resume 'swaymsg "output * dpms on"' \
--insidewrongcolor=282c34ff \ before-sleep 'swaylock -f'
--ringwrongcolor=e06c75ff \
\ bindsym control+Mod1+l exec --no-startup-id swaylock
--insidecolor=282c34ff \
--ringcolor=61afefff \
--linecolor=00000000 \
--separatorcolor=61afefff \
\
--verifcolor=abb2bfff \
--wrongcolor=e06c75ff \
--timecolor=abb2bfff \
--datecolor=abb2bfff \
--layoutcolor=abb2bfff \
--keyhlcolor=98c379ff \
--bshlcolor=e06c75ff \
-n \
--screen 1 \
--blur 10 \
--clock \
--indicator \
--datestr="%d.%m.%Y" \
--wrongtext="Nope!"
bindsym control+Mod1+l exec --no-startup-id xset s activate
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
# Window theming # Window theming
@ -303,5 +284,7 @@ bar {
inactive_workspace $color_bg_focused $color_bg_focused $color_fg_unfocused inactive_workspace $color_bg_focused $color_bg_focused $color_fg_unfocused
urgent_workspace $color_bg_focused $color_bg_focused $color_red urgent_workspace $color_bg_focused $color_bg_focused $color_red
} }
#swaybar_command waybar
status_command i3blocks -c ~/.i3blocks.conf status_command i3blocks -c ~/.i3blocks.conf
} }

28
.config/swaylock/config Normal file
View file

@ -0,0 +1,28 @@
fade-in=0.2
grace=2
clock
datestr=%d.%m.%Y
screenshots
hide-keyboard-layout
bs-hl-color=e06c75ff
font=Roboto=Regular
indicator-idle-visible
indicator-radius=100
indicator-thickness=10
inside-color=282c34ff
inside-clear-color=282c34ff
inside-ver-color=282c34ff
inside-wrong-color=282c34ff
key-hl-color=98c379ff
line-uses-inside
ring-color=61afefff
ring-clear-color=61afefff
ring-ver-color=61afefff
ring-wrong-color=e06c75ff
separator-color=61afefff
text-color=ffffffff
text-clear-color=ffffffff
text-ver-color=ffffffff
text-wrong-color=e06c75ff
effect-blur=7x7
effect-vignette=0.5:0.5