diff --git a/.i3/config b/.i3/config new file mode 100644 index 0000000..d0efc90 --- /dev/null +++ b/.i3/config @@ -0,0 +1,313 @@ +# This file has been auto-generated by i3-config-wizard(1). +# It will not be overwritten, so edit it as you like. +# +# Should you change your keyboard layout somewhen, delete +# this file and re-run i3-config-wizard(1). +# + +# i3 config file (v4) +# +# Please see http://i3wm.org/docs/userguide.html for a complete reference! + +# colors + +#class border backgr. text +client.focused #C9B5BD #C9B5BD #825969 +client.focused_inactive #191919 #191919 #999999 +client.unfocused #191919 #191919 #999999 +client.urgent #cd989a #cd989a #2e3436 +client.background #121212 + +#....... +# font +#....... + +font -*-cure-medium-*-*-*-11-*-*-*-*-*-*-* + + +set $mod Mod4 +set $alt Mod1 + +# Font for window titles. Will also be used by the bar unless a different font +# is used in the bar {} block below. ISO 10646 = Unicode +font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1 +# The font above is very space-efficient, that is, it looks good, sharp and +# clear in small sizes. However, if you need a lot of unicode glyphs or +# right-to-left text rendering, you should instead use pango for rendering and +# chose a FreeType font, such as: +# font pango:DejaVu Sans Mono 10 + +# Use Mouse+$mod to drag floating windows to their wanted position +floating_modifier $mod + +# start a terminal +bindsym $mod+Return exec urxvt -depth 32 -bg rgba:3f00/3f00/3f00/dddd -ip -fg white -sl 10000 +sb -fn "xft:inconsolata:size=8:antialias=true" -letsp -1 -sh 20 +#bindsym $mod+Return exec urxvt -depth 32 -bg rgba:3f00/3f00/3f00/dddd -ip -fg white -sl 10000 +sb -fn "xft:PragmataPro:size=8:antialias=true" -letsp -1 -sh 20 +#bindsym $mod+Return exec terminology +#bindsym $mod+Return exec tilda + +# kill focused window +bindsym $mod+Shift+q kill +bindsym $mod+Shift+k exec xkill +bindsym $alt+F4 kill +bindsym $alt+Tab exec rofi -now + +# start dmenu (a program launcher) +#bindsym $mod+d exec dmenu_run +bindsym $mod+d exec j4-dmenu-desktop +# There also is the (new) i3-dmenu-desktop which only displays applications +# shipping a .desktop file. It is a wrapper around dmenu, so you need that +# installed. +# bindsym $mod+d exec --no-startup-id i3-dmenu-desktop + +#bindsym $mod+d exec rofi -rnow -terminal gnome-terminal +bindsym $mod+grave exec rofi -rnow + +# change focus +bindsym $mod+j focus left +bindsym $mod+k focus down +bindsym $mod+l focus up +bindsym $mod+odiaeresis 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+j move left +#bindsym $mod+Shift+k move down +#bindsym $mod+Shift+l move up +bindsym $mod+Shift+odiaeresis 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+h split h + +# split in vertical orientation +bindsym $mod+v split v + +# enter fullscreen mode for the focused container +bindsym $mod+f fullscreen + +# 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 the child container +#bindsym $mod+d focus child + +# 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: Text +bindsym $mod+Shift+2 move container to workspace 2: Web +bindsym $mod+Shift+3 move container to workspace 3: Office +bindsym $mod+Shift+4 move container to workspace 4: KeePass +bindsym $mod+Shift+5 move container to workspace 5: Mail +bindsym $mod+Shift+6 move container to workspace 6: Chat +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 + +# 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'" + +set $sysmenu "system: [r]eload [l]ogout [p)oweroff re[b]oot" +bindsym $mod+delete mode "$sysmenu" + +mode $sysmenu { + bindsym r restart + bindsym l exit + bindsym p exec shutdown -P now + bindsym b exec shutdown -r now + bindsym Return mode "default" + bindsym Escape mode "default" +} + +set $displaymenu [g]aming [w]ork +bindsym $mod+Shift+x mode "$displaymenu" + +mode "$displaymenu" { + bindsym g exec --no-startup-id xrandr --output DVI-D-0 --off --output HDMI-0 --off --output DP-5 --off --output DP-4 --primary --mode 2560x1440 --pos 1080x0 --rotate normal --output DP-3 --off --output DP-2 --off --output DP-1 --off --output DP-0 --off, mode "default" + bindsym w exec --no-startup-id xrandr --output DVI-D-0 --off --output HDMI-0 --off --output DP-5 --off --output DP-4 --primary --mode 2560x1440 --pos 1080x0 --rotate normal --output DP-3 --off --output DP-2 --mode 1920x1080 --pos 3640x0 --rotate normal --output DP-1 --off --output DP-0 --mode 1920x1080 --pos 0x0 --rotate right, mode "default" + bindsym Return mode "default" + bindsym Escaoe mode "default" +} + +bindsym $mod+Prior move workspace to output left +bindsym $mod+Next move workspace to output right + +# 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 j resize shrink width 10 px or 10 ppt + bindsym k resize grow height 10 px or 10 ppt + bindsym l resize shrink height 10 px or 10 ppt + bindsym odiaeresis 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" + +# Start i3bar to display a workspace bar (plus the system information i3status +# finds out, if available) +bar { + status_command i3status --config ~/.i3/i3status.conf + font xft:Roboto 8 + colors { + background #2e2e2e + statusline #FFFFFF + inactive_workspace #444444 #222222 + active_workspace #1C1C1C #444444 + focused_workspace #1C1C1C #444444 #cc8800 + urgent_workspace #1C1C1C #FF0000 + } + +} +bar { + position top + status_command ~/.i3/startup_conky + tray_output none + workspace_buttons no + mode dock +# mode hide +# modifier $alt +# font xft:Pragmata Pro 8 + font xft:Roboto 8 + colors { + background #2e2e2e + statusline #000000 + inactive_workspace #444444 #222222 + active_workspace #1C1C1C #444444 + focused_workspace #1C1C1C #444444 #cc8800 + urgent_workspace #1C1C1C #FF0000 + } +} + + +bindsym $mod+Shift+l exec i3lock +set $mode_system System (l) lock, (e) logout, (s) suspend, (h) hibernate, (r) reboot, (Shift+s) shutdown +mode "$mode_system" { + bindsym l exec --no-startup-id ~/.i3/i3exit lock, mode "default" + bindsym e exec --no-startup-id ~/.i3/i3exit logout, mode "default" + bindsym s exec --no-startup-id ~/.i3/i3exit suspend, mode "default" + bindsym h exec --no-startup-id ~/.i3/i3exit hibernate, mode "default" + bindsym r exec --no-startup-id ~/.i3/i3exit reboot, mode "default" + bindsym Shift+s exec --no-startup-id i3exit shutdown, mode "default" + + # back to normal: Enter or Escape + bindsym Return mode "default" + bindsym Escape mode "default" +} +bindsym $mod+Pause mode "$mode_system" + +#Snipping Tool +#bindsym --release Print exec scrot -s -e 'mv $f ~/Bilder/Screenshots/screenshot_%Y-%m-%d_%H%M%S.png' +bindsym --release Print exec maim -s ~/Bilder/Screenshots/screenshot_$(date +%s).png + + +## Media keys +bindsym XF86AudioRaiseVolume exec pactl set-sink-volume alsa_output.usb-0d8c_USB_Sound_Device-00.analog-stereo +5% +bindsym XF86AudioLowerVolume exec pactl set-sink-volume alsa_output.usb-0d8c_USB_Sound_Device-00.analog-stereo -5% +bindsym XF86AudioMute exec pamixer -t + +#Enable GLX Graphics +bindsym $mod+g exec /home/templis/dri.sh + +exec pulseaudio --start +exec /home/templis/.config/i3/wallpaper_ch & +exec /usr/bin/pasystray + +workspace_layout tabbed +bindsym $mod+1 workspace 1: Text +bindsym $mod+2 workspace 2: Web +bindsym $mod+3 workspace 3: Office +bindsym $mod+4 workspace 4: KeePass +bindsym $mod+5 workspace 5: Mail +bindsym $mod+6 workspace 6: Chat +for_window [window_role="pop-up"] floating enable,move absolute center +for_window [class="Pinentry"] floating enable +for_window [class="Eog"] floating enable +for_window [class="Geary"] floating enable +for_window [class="Gcr-prompter"] floating enable +for_window [class="Tipswindow.py"] floating enable +for_window [class="XVroot"] floating enable +for_window [class="XVcontrols"] floating enable +for_window [class="Vlc"] floating enable +for_window [class="Synergy"] floating enable +for_window [class="libreoffice-writer"] floating enable +for_window [class="Shotwell"] floating enable +for_window [class="UpLauncher"] floating enable +for_window [title="^Minecraft .*"] floating enable +for_window [title="Steam - Update News"] kill +for_window [title="Preferences$"] floating enable +assign [class="Chromium"] 2: Web +assign [class="chrome"] 2: Web +assign [class="Firefox"] 2: Web +assign [class="libreoffice"] 3: Office +assign [class="Gimp"] 3: Office +assign [class="KeePass2"] 4: KeePass +assign [class="keepassxc"] 4: KeePass +assign [class="^Minecraft Launcher .*"] 3: Office +assign [class="(?i)thunderbird"] 5: Mail +exec firefox +#exec chromium +exec nm-applet +#exec google-chrome-stable +exec redshift-gtk +exec nextcloud +for_window [class="^Pidgin$" window_role="^conversation$"] resize grow width 0 px or 30 ppt +bindsym $mod+t border normal +bindsym $mod+y border 1pixel +bindsym $mod+u border none +exec --no-startup-id i3-msg 'workspace 1: Text; exec urxvt -depth 32 -bg rgba:3f00/3f00/3f00/dddd -ip -fg white -sl 10000 +sb -fn "xft:inconsolata:size=8" -letsp -1 -sh 20' +exec radiotray +exec feh --randomize --bg-fill ~/Bilder/Wallpaper/* +exec udisksvm >/dev/null & +exec razercommander -q diff --git a/.i3/config.backup b/.i3/config.backup new file mode 100644 index 0000000..f8012cf --- /dev/null +++ b/.i3/config.backup @@ -0,0 +1,268 @@ +# This file has been auto-generated by i3-config-wizard(1). +# It will not be overwritten, so edit it as you like. +# +# Should you change your keyboard layout somewhen, delete +# this file and re-run i3-config-wizard(1). +# + +# i3 config file (v4) +# +# Please see http://i3wm.org/docs/userguide.html for a complete reference! + +# colors + +#class border backgr. text +client.focused #C9B5BD #C9B5BD #825969 +client.focused_inactive #191919 #191919 #999999 +client.unfocused #191919 #191919 #999999 +client.urgent #cd989a #cd989a #2e3436 +client.background #121212 + +#....... +# font +#....... + +font -*-cure-medium-*-*-*-11-*-*-*-*-*-*-* + + +set $mod Mod4 + +# Font for window titles. Will also be used by the bar unless a different font +# is used in the bar {} block below. ISO 10646 = Unicode +font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1 +# The font above is very space-efficient, that is, it looks good, sharp and +# clear in small sizes. However, if you need a lot of unicode glyphs or +# right-to-left text rendering, you should instead use pango for rendering and +# chose a FreeType font, such as: +# font pango:DejaVu Sans Mono 10 + +# Use Mouse+$mod to drag floating windows to their wanted position +floating_modifier $mod + +# start a terminal +bindsym $mod+Return exec urxvt -depth 32 -bg rgba:3f00/3f00/3f00/dddd -ip -fg white -sl 10000 +sb -fn "xft:inconsolata:size=8:antialias=true" -letsp -1 -sh 20 +#bindsym $mod+Return exec urxvt -depth 32 -bg rgba:3f00/3f00/3f00/dddd -ip -fg white -sl 10000 +sb -fn "xft:PragmataPro:size=8:antialias=true" -letsp -1 -sh 20 +#bindsym $mod+Return exec terminology +#bindsym $mod+Return exec tilda + +# kill focused window +bindsym $mod+Shift+q kill +bindsym $mod+Shift+k exec xkill + +# start dmenu (a program launcher) +#bindsym $mod+d exec dmenu_run +bindsym $mod+d exec j4-dmenu-desktop +# There also is the (new) i3-dmenu-desktop which only displays applications +# shipping a .desktop file. It is a wrapper around dmenu, so you need that +# installed. +# bindsym $mod+d exec --no-startup-id i3-dmenu-desktop + +# change focus +bindsym $mod+j focus left +bindsym $mod+k focus down +bindsym $mod+l focus up +bindsym $mod+odiaeresis 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+j move left +#bindsym $mod+Shift+k move down +bindsym $mod+Shift+l move up +bindsym $mod+Shift+odiaeresis 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+h split h + +# split in vertical orientation +bindsym $mod+v split v + +# enter fullscreen mode for the focused container +bindsym $mod+f fullscreen + +# 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 the child container +#bindsym $mod+d focus child + +# 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: Text +bindsym $mod+Shift+2 move container to workspace 2: Web +bindsym $mod+Shift+3 move container to workspace 3: Office +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 + +# 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'" + +# 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 j resize shrink width 10 px or 10 ppt + bindsym k resize grow height 10 px or 10 ppt + bindsym l resize shrink height 10 px or 10 ppt + bindsym odiaeresis 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" + +# Start i3bar to display a workspace bar (plus the system information i3status +# finds out, if available) +bar { + status_command i3status --config ~/.i3/i3status.conf + font xft:Roboto 8 + colors { + background #2e2e2e + statusline #FFFFFF + inactive_workspace #444444 #222222 + active_workspace #1C1C1C #444444 + focused_workspace #1C1C1C #444444 #cc8800 + urgent_workspace #1C1C1C #FF0000 + } + +} +bar { + position top + status_command ~/.i3/startup_conky + tray_output none + workspace_buttons no + mode dock +# mode hide +# modifier $alt +# font xft:Pragmata Pro 8 + font xft:Roboto 8 + colors { + background #2e2e2e + statusline #000000 + inactive_workspace #444444 #222222 + active_workspace #1C1C1C #444444 + focused_workspace #1C1C1C #444444 #cc8800 + urgent_workspace #1C1C1C #FF0000 + } +} + + +bindsym Control+mod1+l exec i3lock +set $mode_system System (l) lock, (e) logout, (s) suspend, (h) hibernate, (r) reboot, (Shift+s) shutdown +mode "$mode_system" { + bindsym l exec --no-startup-id ~/.i3/i3exit lock, mode "default" + bindsym e exec --no-startup-id ~/.i3/i3exit logout, mode "default" + bindsym s exec --no-startup-id ~/.i3/i3exit suspend, mode "default" + bindsym h exec --no-startup-id ~/.i3/i3exit hibernate, mode "default" + bindsym r exec --no-startup-id ~/.i3/i3exit reboot, mode "default" + bindsym Shift+s exec --no-startup-id i3exit shutdown, mode "default" + + # back to normal: Enter or Escape + bindsym Return mode "default" + bindsym Escape mode "default" +} +bindsym $mod+Pause mode "$mode_system" + +#Snipping Tool +bindsym --release Print exec scrot -s -e 'mv $f ~/Bilder/Screenshots/screenshot_%Y-%m-%d.png' + +## Media keys +bindsym XF86AudioRaiseVolume exec pactl set-sink-volume 0 +5% +bindsym XF86AudioLowerVolume exec pactl set-sink-volume 0 -- -5% +bindsym XF86AudioMute exec amixer -q set Master toggle + +#Enable GLX Graphics +bindsym $mod+g exec /home/templis/dri.sh + +exec pulseaudio --start +exec /home/templis/.config/i3/wallpaper_ch & +exec /usr/bin/pasystray + +workspace_layout tabbed +bindsym $mod+1 workspace 1: Text +bindsym $mod+2 workspace 2: Web +bindsym $mod+3 workspace 3: Office +bindsym $mod+4 workspace 4: KeePass2 +for_window [window_role="pop-up"] floating enable,move absolute center +for_window [class="Pinentry"] floating enable +for_window [class="Eog"] floating enable +for_window [class="Geary"] floating enable +for_window [class="Gcr-prompter"] floating enable +for_window [class="Tipswindow.py"] floating enable +for_window [class="XVroot"] floating enable +for_window [class="XVcontrols"] floating enable +for_window [class="Vlc"] floating enable +for_window [class="Synergy"] floating enable +for_window [class="libreoffice-writer"] floating enable +for_window [class="Shotwell"] floating enable +for_window [class="UpLauncher"] floating enable +assign [class="Chromium"] 2: Web +assign [class="Firefox"] 2: Web +assign [class="libreoffice"] 3: Office +assign [class="Gimp"] 3: Office +assign [class="KeePass2"] 4: KeePass2 +exec firefox +#exec chromium +exec redshiftgui +exec nm-applet +for_window [class="^Pidgin$" window_role="^conversation$"] resize grow width 0 px or 30 ppt +bindsym $mod+t border normal +bindsym $mod+y border 1pixel +bindsym $mod+u border none +exec --no-startup-id i3-msg 'workspace 1: Text; exec urxvt -depth 32 -bg rgba:3f00/3f00/3f00/dddd -ip -fg white -sl 10000 +sb -fn "xft:inconsolata:size=8" -letsp -1 -sh 20' +exec radiotray +exec feh --randomize --bg-fill ~/Bilder/Wallpaper/* +exec udisksvm >/dev/null & diff --git a/.i3/conkyrc b/.i3/conkyrc new file mode 100644 index 0000000..ebbc8a6 --- /dev/null +++ b/.i3/conkyrc @@ -0,0 +1,107 @@ +#if [ -f "${HOME}/.gpg-agent-info" ]; then +# . "${HOME}/.gpg-agent-info" +# export GPG_AGENT_INFO +# export SSH_AUTH_SOCK +#fi + +## i3barConky +out_to_x no +own_window no +out_to_console yes +background no +use_xft yes + +##avoid flicker +double_buffer yes + +## Update interval in seconds +update_interval 2 + +## This is the number of times Conky will update before quitting. +## Set to zero to run forever +total_run_times 0 + +## How strict should if_up be when testing an interface for being up? +if_up_strictness address + +## borders +draw_borders no +#border_inner_margin 2 +#border_margin 3 + +## shades +draw_shades yes + +## Force UTF8? note that UTF8 support required XFT +override_utf8_locale yes + +## to prevent window from moving +use_spacer left + +## number of cpu samples to average +## set to 1 to disable averaging +cpu_avg_samples 2 +short_units yes + +## Stuff after 'TEXT' will be formatted on screen +TEXT +[ + { + "full_text" : "${execi 60 curl -p v4.icanhazip.com}", + "color" : ${if_up enp2s0}"\#777777"${else}"\#e74f4f4"${endif}, + "separator" : false, + "separator_block_width" : 30, + "align" : "left" + }, + { + "full_text" : "\u23e3", + "color" : "\#777777", + "separator" : false, + "separator_block_width" : 3, + "align" : "left" + }, + { + "full_text" : "${cpu}%", + "color" : ${if_match ${cpu}>75}"\#e74f4f4"${else}"\#777777"${endif}, + "separator" : false, + "separator_block_width" : 2, + "min_width": 20, + "align" : "left" + }, + { + "full_text" : "${mem}", + "color" : "\#777777", + "separator" : false, + "separator_block_width" : 3, + "min_width": 30, + "align" : "right" + }, + { + "full_text" : "(${memmax})", + "separator" : false, + "separator_block_width" : 450, + "color" : "\#777777", + "min_width": 30, + "align" : "left" + + }, + { + "full_text" : "${time %A den %d %B %Y KW: %V, }${time %H:%M}", + "separator" : false, + "separator_block_width" : 800, + "color" : "\#cc8800", + "min_width": 800, + "align" : "center" + }, + { + "full_text" : "${execi 900 ~/.i3/weather.sh}", + "color" : "\#777777", + "min_width": 140, + "align" : "right", + "separator" : false, + "min_width": 30, + "separator_block_width" : 6 + } +], + + diff --git a/.i3/i3exit b/.i3/i3exit new file mode 100755 index 0000000..70ee124 --- /dev/null +++ b/.i3/i3exit @@ -0,0 +1,30 @@ +#!/bin/sh +lock() { + i3lock +} + +case "$1" in + lock) + lock + ;; + logout) + i3-msg exit + ;; + suspend) + lock && systemctl suspend + ;; + hibernate) + lock && systemctl hibernate + ;; + reboot) + systemctl reboot + ;; + shutdown) + systemctl poweroff + ;; + *) + echo "Usage: $0 {lock|logout|suspend|hibernate|reboot|shutdown}" + exit 2 +esac + +exit 0 diff --git a/.i3/i3status.conf b/.i3/i3status.conf new file mode 100644 index 0000000..4356e4e --- /dev/null +++ b/.i3/i3status.conf @@ -0,0 +1,48 @@ +general { + colors = true + interval = 5 +} + +order += "disk /" +order += "ipv6" +order += "run_watch VPN" +order += "wireless wlan0" +order += "ethernet eth0" +order += "battery 0" +order += "load" +order += "time" + +wireless wlan0 { + format_up = "W: (%quality at %essid) %ip" + format_down = "W: down" +} + +ethernet enp6s0 { + # if you use %speed, i3status requires root privileges + format_up = "E: %ip (%speed)" + format_down = "E: down" +} + +battery 0 { + format = "%status %percentage %remaining" +} + +run_watch DHCP { + pidfile = "/var/run/dhclient*.pid" +} + +run_watch VPN { + pidfile = "/var/run/vpnc/pid" +} + +time { + format = "%Y-%m-%d %H:%M:%S" +} + +load { + format = "%1min" +} + +disk "/" { + format = "%free (or: %percentage_used used, %percentage_free free)" +} diff --git a/.i3/startup_conky b/.i3/startup_conky new file mode 100755 index 0000000..30daeda --- /dev/null +++ b/.i3/startup_conky @@ -0,0 +1,13 @@ +#!/bin/sh + +# Send the header so that i3bar knows we want to use JSON: +echo '{"version":1}' + +# Begin the endless array. +echo '[' + +# We send an empty first array of blocks to make the loop simpler: +echo '[],' + +# Now send blocks with information forever: +exec conky -c ~/.i3/conkyrc diff --git a/.i3/weather.sh b/.i3/weather.sh new file mode 100755 index 0000000..ebdab6b --- /dev/null +++ b/.i3/weather.sh @@ -0,0 +1,22 @@ +#!/bin/zsh + +## The temperature is fetched from the free Norwegian forcast service Yr.no. Change the wurl variable to +## correspond with your location. Your ip can be blocked if you try to fetch the forecast too quick. So +## use an interval longer than 10 minutes. + +wurl="http://www.yr.no/place/Germany/Baden-Württemberg/Bad_Säckingen/forecast.xml" + +winfo=$(curl -s $wurl | egrep '(temperature|symbol)' | \ +awk -F'="|"' '{printf $4","}' | cut -d "," -f 1-4) + +[ "grep -i '^Cloudy$' <<<$winfo" ] && winfo=$(sed 's/Cloudy/\\u2601/g' <<<"$winfo") +[ "grep -i '^Partly cloudy$' <<<$winfo" ] && winfo=$(sed 's/Partly cloudy/\\u2601/g' <<<"$winfo") +[ "grep -i '^Fair$' <<<$winfo" ] && winfo=$(sed 's/Fair/\\u2600/g' <<<"$winfo") +[ "grep -i '^Clear sky$' <<<$winfo" ] && winfo=$(sed 's/Clear sky/\\u2600/g' <<<"$winfo") +[ "grep -i '^Rain$' <<<$winfo" ] && winfo=$(sed 's/Rain/\\u2602/g' <<<"$winfo") +[ "grep -i '^Rain showers$' <<<$winfo" ] && winfo=$(sed 's/Rain showers/\\u2602/g' <<<"$winfo") +[ "grep -i '^showers and thunder$' <<<$winfo" ] && winfo=$(sed 's/showers and thunder/\\u2602\\u26a1/g' <<<"$winfo") +[ "grep -i '^Heavy rain$' <<<$winfo" ] && winfo=$(sed 's/Heavy rain/\\u2614\\u26a0/g' <<<"$winfo") +[ "grep -i '^Snow$' <<<$winfo" ] && winfo=$(sed 's/Snow/\\u2744/g' <<<"$winfo") + +awk -F"," '{print $2"°C",$1" "$4"°C",$3}' <<<$winfo