From bceb25185aa49e0b71df5db3061d18b3417d14eb Mon Sep 17 00:00:00 2001 From: chodak166 Date: Sun, 3 May 2026 16:49:30 +0200 Subject: [PATCH] Added ratflow laptop profile; added sudoedit alias --- .../profiles/chodak-laptop/autoapp.conf | 13 +++ .../chodak-laptop/config.d/01-variables | 16 ++++ .../chodak-laptop/config.d/10-workspaces | 56 ++++++++++++ .../chodak-laptop/config.d/11-outputs | 30 +++++++ .../chodak-laptop/config.d/13-wallpaper | 16 ++++ .../chodak-laptop/config.d/20-keys-apps-core | 21 +++++ .../config.d/20-keys-window-jumper | 4 + .../chodak-laptop/config.d/20-keys-wm | 87 +++++++++++++++++++ .../chodak-laptop/config.d/21-always-float | 1 + .../chodak-laptop/config.d/21-keys-apps | 22 +++++ .../chodak-laptop/config.d/21-keys-media | 35 ++++++++ .../chodak-laptop/config.d/21-keys-projector | 11 +++ .../chodak-laptop/config.d/21-keys-session | 36 ++++++++ .../chodak-laptop/config.d/21-new-workspace | 2 + .../profiles/chodak-laptop/config.d/30-theme | 50 +++++++++++ .../profiles/chodak-laptop/config.d/31-bar | 35 ++++++++ .../chodak-laptop/config.d/40-assignments | 42 +++++++++ .../chodak-laptop/config.d/50-floating | 12 +++ .../profiles/chodak-laptop/config.d/90-exec | 42 +++++++++ .../chodak-laptop/config.d/91-exec_always | 7 ++ .../config.d/floating.d/Osmo.float | 1 + .../config.d/floating.d/Skype.float | 1 + .../config.d/floating.d/Yad.float | 1 + .config/ratflow/profiles/chodak-laptop/env | 1 + .../profiles/chodak-laptop/py3status.conf | 77 ++++++++++++++++ .zshrc | 1 + 26 files changed, 620 insertions(+) create mode 100755 .config/ratflow/profiles/chodak-laptop/autoapp.conf create mode 100755 .config/ratflow/profiles/chodak-laptop/config.d/01-variables create mode 100755 .config/ratflow/profiles/chodak-laptop/config.d/10-workspaces create mode 100755 .config/ratflow/profiles/chodak-laptop/config.d/11-outputs create mode 100755 .config/ratflow/profiles/chodak-laptop/config.d/13-wallpaper create mode 100755 .config/ratflow/profiles/chodak-laptop/config.d/20-keys-apps-core create mode 100644 .config/ratflow/profiles/chodak-laptop/config.d/20-keys-window-jumper create mode 100755 .config/ratflow/profiles/chodak-laptop/config.d/20-keys-wm create mode 100755 .config/ratflow/profiles/chodak-laptop/config.d/21-always-float create mode 100755 .config/ratflow/profiles/chodak-laptop/config.d/21-keys-apps create mode 100755 .config/ratflow/profiles/chodak-laptop/config.d/21-keys-media create mode 100755 .config/ratflow/profiles/chodak-laptop/config.d/21-keys-projector create mode 100755 .config/ratflow/profiles/chodak-laptop/config.d/21-keys-session create mode 100755 .config/ratflow/profiles/chodak-laptop/config.d/21-new-workspace create mode 100755 .config/ratflow/profiles/chodak-laptop/config.d/30-theme create mode 100755 .config/ratflow/profiles/chodak-laptop/config.d/31-bar create mode 100755 .config/ratflow/profiles/chodak-laptop/config.d/40-assignments create mode 100755 .config/ratflow/profiles/chodak-laptop/config.d/50-floating create mode 100755 .config/ratflow/profiles/chodak-laptop/config.d/90-exec create mode 100755 .config/ratflow/profiles/chodak-laptop/config.d/91-exec_always create mode 100755 .config/ratflow/profiles/chodak-laptop/config.d/floating.d/Osmo.float create mode 100755 .config/ratflow/profiles/chodak-laptop/config.d/floating.d/Skype.float create mode 100755 .config/ratflow/profiles/chodak-laptop/config.d/floating.d/Yad.float create mode 100755 .config/ratflow/profiles/chodak-laptop/env create mode 100755 .config/ratflow/profiles/chodak-laptop/py3status.conf diff --git a/.config/ratflow/profiles/chodak-laptop/autoapp.conf b/.config/ratflow/profiles/chodak-laptop/autoapp.conf new file mode 100755 index 0000000..ed25476 --- /dev/null +++ b/.config/ratflow/profiles/chodak-laptop/autoapp.conf @@ -0,0 +1,13 @@ +{ + "1": "terminator", + "2": "eclipse", + "3": "firefox", + "4": "pcmanfm", + "5": "thunderbird", + "6": "slack || telegram", + "7": "kodi", + "8": "kate || gedit", + "9": "kate || gedit", + "0": "clementine", + "vm": "virtualbox || openxenmanager" +} \ No newline at end of file diff --git a/.config/ratflow/profiles/chodak-laptop/config.d/01-variables b/.config/ratflow/profiles/chodak-laptop/config.d/01-variables new file mode 100755 index 0000000..645e3b9 --- /dev/null +++ b/.config/ratflow/profiles/chodak-laptop/config.d/01-variables @@ -0,0 +1,16 @@ +#------------------------------------------------ +# +# variable definitions +# +#------------------------------------------------ + +# what will be yout mod key? Use Mod4 for "window" key, Mod1 for "alt" +set $mod ${{echo $RF_MOD_KEY}} +#set $mod Mod1 + +# helper scripts location +set $scriptsDir /usr/share/ratflow/scripts + +# config dir +set $configDir ${{echo "$HOME/.config/ratflow"}} +set $profileConfigDir ${{echo "$HOME/.config/ratflow/profiles/current/config.d"}} diff --git a/.config/ratflow/profiles/chodak-laptop/config.d/10-workspaces b/.config/ratflow/profiles/chodak-laptop/config.d/10-workspaces new file mode 100755 index 0000000..3dc674a --- /dev/null +++ b/.config/ratflow/profiles/chodak-laptop/config.d/10-workspaces @@ -0,0 +1,56 @@ +#------------------------------------------------ +# +# workspace settings +# +#------------------------------------------------ + +# workspaces +set $workspace1 1: >_ +set $workspace2 2: dev +set $workspace3 3: www +set $workspace4 4: files +set $workspace5 5: e-mail +set $workspace6 6: IM +set $workspace7 7: video +set $workspace8 8: workspace +set $workspace9 9: workspace +set $workspace10 10: Music +set $workspace11 V: VM + +# 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 +#bindsym $mod+Mod1+v workspace $workspace11 + +# 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 + +# next/prev workspace +bindsym $mod+x workspace next +bindsym $mod+Shift+x move container to workspace next +bindsym $mod+z workspace prev +bindsym $mod+Shift+z move container to workspace prev + +# moving workspace across monitors +bindsym $mod+Control+Left move workspace to output left +bindsym $mod+Control+Right move workspace to output right + + + diff --git a/.config/ratflow/profiles/chodak-laptop/config.d/11-outputs b/.config/ratflow/profiles/chodak-laptop/config.d/11-outputs new file mode 100755 index 0000000..c3ad94e --- /dev/null +++ b/.config/ratflow/profiles/chodak-laptop/config.d/11-outputs @@ -0,0 +1,30 @@ +#------------------------------------------------ +# +# video output management +# +#------------------------------------------------ + +# monitors - use "xrandr --listmonitors" to obtain your output names +set $leftOutput ${{xrandr | grep connected | awk 'NR==1{print $1}'}} +set $rightOutput ${{xrandr | grep connected | awk 'NR==2{print $1}'}} + +# setup monitors +exec --no-startup-id xrandr --output $rightOutput --primary +exec --no-startup-id xrandr --output $leftOutput --left-of $rightOutput + +mode "outputs" { + # mod + shift + 1 to turn off left monitor, mod + 1 to turn it on + bindsym $mod+Shift+1 exec xrandr --output $leftOutput --off; mode "default"; restart + bindsym $mod+1 exec xrandr --output $leftOutput --auto --left-of $rightOutput;mode "default"; restart + + # mod + shift + 2 to turn off right monitor, mod + 2 to turn it on + bindsym $mod+Shift+2 exec xrandr --output $rightOutput --off; mode "default", restart + bindsym $mod+2 exec xrandr --output $rightOutput --auto --right-of $leftOutput; mode "default"; restart + + + bindsym Return mode "default" + bindsym Escape mode "default" +} + +bindsym $mod+m mode "outputs" + diff --git a/.config/ratflow/profiles/chodak-laptop/config.d/13-wallpaper b/.config/ratflow/profiles/chodak-laptop/config.d/13-wallpaper new file mode 100755 index 0000000..c953971 --- /dev/null +++ b/.config/ratflow/profiles/chodak-laptop/config.d/13-wallpaper @@ -0,0 +1,16 @@ +#------------------------------------------------ +# +# wallpaper settings +# +#------------------------------------------------ + +# wallpapers (second for multihead) +set $wallpaper1 /usr/share/ratflow/images/rf_wp_14.jpg +set $wallpaper2 /usr/share/ratflow/images/rf_wp_14.jpg + +# set wallpapers +exec_always --no-startup-id sleep 2 && feh --bg-scale $wallpaper1 --bg-scale $wallpaper2 + +# apply xrandr settings +exec_always --no-startup-id sleep 2 && xrandr --output $leftOutput --left-of $rightOutput + diff --git a/.config/ratflow/profiles/chodak-laptop/config.d/20-keys-apps-core b/.config/ratflow/profiles/chodak-laptop/config.d/20-keys-apps-core new file mode 100755 index 0000000..cd4c4ff --- /dev/null +++ b/.config/ratflow/profiles/chodak-laptop/config.d/20-keys-apps-core @@ -0,0 +1,21 @@ +#------------------------------------------------ +# +# application running bindings +# +#------------------------------------------------ + +# start a terminal +#bindsym $mod+Return exec i3-sensible-terminal +#bindsym $mod+Return exec terminator -p ratflow-terminator +bindsym $mod+Return exec kitty + +# start dmenu (a program launcher) +#bindsym $mod+d exec dmenu_run +#bindsym Mod1+F2 exec dmenu_run + +#let's replace dmenu by custom launcher: +bindsym $mod+d exec ${{command -v ulauncher 2>&1 >/dev/null && echo ulauncher || echo dmenu_run}} +bindsym Mod1+F2 exec dmenu_run + +# run app assigned to current workspace +bindsym $mod+Shift+a exec $scriptsDir/autoapp diff --git a/.config/ratflow/profiles/chodak-laptop/config.d/20-keys-window-jumper b/.config/ratflow/profiles/chodak-laptop/config.d/20-keys-window-jumper new file mode 100644 index 0000000..5c818f4 --- /dev/null +++ b/.config/ratflow/profiles/chodak-laptop/config.d/20-keys-window-jumper @@ -0,0 +1,4 @@ + +#bindsym Mod1+Tab exec "$scriptsDir/dmenu-i3-window-jumper &" +bindsym $mod+Tab workspace back_and_forth + diff --git a/.config/ratflow/profiles/chodak-laptop/config.d/20-keys-wm b/.config/ratflow/profiles/chodak-laptop/config.d/20-keys-wm new file mode 100755 index 0000000..c193eac --- /dev/null +++ b/.config/ratflow/profiles/chodak-laptop/config.d/20-keys-wm @@ -0,0 +1,87 @@ +#------------------------------------------------ +# +# window management bindings +# +#------------------------------------------------ + +# Use Mouse+$mod to drag floating windows to their wanted position +floating_modifier $mod + +# kill focused window +bindsym $mod+Shift+q kill + +# change focus +bindsym $mod+j focus left +bindsym $mod+k focus down +bindsym $mod+l focus up +bindsym $mod+semicolon 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+semicolon 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 + +# nested split in horizontal orientation +bindsym $mod+h split h + +# nested 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 +bindsym --whole-window $mod+button2 floating toggle + +# change focus between tiling / floating windows +bindsym $mod+space focus mode_toggle + +# focus the parent container +bindsym $mod+a focus parent + + +# 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 semicolon 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" + diff --git a/.config/ratflow/profiles/chodak-laptop/config.d/21-always-float b/.config/ratflow/profiles/chodak-laptop/config.d/21-always-float new file mode 100755 index 0000000..439c385 --- /dev/null +++ b/.config/ratflow/profiles/chodak-laptop/config.d/21-always-float @@ -0,0 +1 @@ +bindsym $mod+Shift+f exec $scriptsDir/always-float diff --git a/.config/ratflow/profiles/chodak-laptop/config.d/21-keys-apps b/.config/ratflow/profiles/chodak-laptop/config.d/21-keys-apps new file mode 100755 index 0000000..15be4d1 --- /dev/null +++ b/.config/ratflow/profiles/chodak-laptop/config.d/21-keys-apps @@ -0,0 +1,22 @@ +#------------------------------------------------ +# +# application running bindings +# +#------------------------------------------------ + +# calendar +bindsym $mod+c exec osmo -c + +# screenshots (full, region, active) +bindsym Print exec screengrab --fullscreen +bindsym Shift+Print exec screengrab --region +bindsym Control+Print exec screengrab --active + +# redshift +bindsym $mod+Control+Next exec $scriptsDir/redshift-adjust -100 +bindsym $mod+Control+Prior exec $scriptsDir/redshift-adjust +100 +bindsym $mod+Control+l exec redshift -x + +# translation of selected text +bindsym $mod+t exec bash -c "$scriptsDir/trans-xsel en:pl &" +bindsym $mod+Shift+t exec bash -c "$scriptsDir/trans-xsel pl:en &" diff --git a/.config/ratflow/profiles/chodak-laptop/config.d/21-keys-media b/.config/ratflow/profiles/chodak-laptop/config.d/21-keys-media new file mode 100755 index 0000000..646d369 --- /dev/null +++ b/.config/ratflow/profiles/chodak-laptop/config.d/21-keys-media @@ -0,0 +1,35 @@ +#------------------------------------------------ +# +# multimedia keys and audio/video players bindings +# +#------------------------------------------------ + +# Pulse Audio controls (debian), the VOLCTL_SINK_NUM selects sink starting from the most recent one connected +bindsym XF86AudioRaiseVolume exec --no-startup-id (VOLCTL_SINK_NUM=1 $scriptsDir/volctl up) +bindsym XF86AudioLowerVolume exec --no-startup-id (VOLCTL_SINK_NUM=1 $scriptsDir/volctl down) +bindsym XF86AudioMute exec --no-startup-id (VOLCTL_SINK_NUM=1 $scriptsDir/volctl toggle) + +bindsym Shift+XF86AudioRaiseVolume exec --no-startup-id (VOLCTL_SINK_NUM=2 $scriptsDir/volctl up) +bindsym Shift+XF86AudioLowerVolume exec --no-startup-id (VOLCTL_SINK_NUM=2 $scriptsDir/volctl down) +bindsym Shift+XF86AudioMute exec --no-startup-id (VOLCTL_SINK_NUM=2 $scriptsDir/volctl toggle) + +# Sreen brightness controls +#bindsym XF86MonBrightnessUp exec xbacklight -inc 20 # increase screen brightness +#bindsym XF86MonBrightnessDown exec xbacklight -dec 20 # decrease screen brightness +bindsym XF86MonBrightnessUp exec $scriptsDir/backlight up +bindsym XF86MonBrightnessDown exec $scriptsDir/backlight down + +# Media player controls +#bindsym XF86AudioPlay exec playerctl play +#bindsym XF86AudioPause exec playerctl pause +#bindsym XF86AudioNext exec playerctl next +#bindsym XF86AudioPrev exec playerctl previous + +# Clementine player controls +bindsym XF86AudioPlay exec clementine --play-pause +bindsym XF86AudioPause exec clementine --pause +bindsym XF86AudioNext exec clementine --next +bindsym XF86AudioPrev exec clementine --previous +# bindsym Shift+XF86AudioRaiseVolume exec clementine --volume-up +# bindsym Shift+XF86AudioLowerVolume exec clementine --volume-down + diff --git a/.config/ratflow/profiles/chodak-laptop/config.d/21-keys-projector b/.config/ratflow/profiles/chodak-laptop/config.d/21-keys-projector new file mode 100755 index 0000000..99d0e9c --- /dev/null +++ b/.config/ratflow/profiles/chodak-laptop/config.d/21-keys-projector @@ -0,0 +1,11 @@ +#------------------------------------------------ +# +# media player bindings +# +#------------------------------------------------ + +# Pulse Audio controls (debian) +bindsym $mod+p exec /home/chodak/.screenlayout/projector.sh +bindsym Shift+$mod+p exec /home/chodak/.screenlayout/edp.sh + + diff --git a/.config/ratflow/profiles/chodak-laptop/config.d/21-keys-session b/.config/ratflow/profiles/chodak-laptop/config.d/21-keys-session new file mode 100755 index 0000000..590bac9 --- /dev/null +++ b/.config/ratflow/profiles/chodak-laptop/config.d/21-keys-session @@ -0,0 +1,36 @@ +#------------------------------------------------ +# +# session/power management +# +#------------------------------------------------ + +# regenerate and reload i3 configuration file +bindsym $mod+Shift+c exec rfreload + +# suspend +bindsym $mod+Escape exec systemctl suspend + + +# regenerate i3 configuration file and restart i3 (preserves your layout/session, can be used to upgrade i3) +bindsym $mod+Shift+r exec rfreload --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'" + +# use i3exit script from https://github.com/giacomos/i3wm-config/blob/master/i3exit +set $exitScript /usr/share/ratflow/scripts/i3exit + +mode "session_management" { + bindsym l exec --no-startup-id $exitScript lock, mode "default" + bindsym e exec --no-startup-id $exitScript logout, mode "default" + bindsym s exec --no-startup-id $exitScript suspend, mode "default" + bindsym h exec --no-startup-id $exitScript hibernate, mode "default" + bindsym r exec --no-startup-id $exitScript reboot, mode "default" + bindsym Shift+s exec --no-startup-id $exitScript shutdown, mode "default" + + # back to normal: Enter or Escape + bindsym Return mode "default" + bindsym Escape mode "default" +} +bindsym $mod+Pause mode "session_management" + diff --git a/.config/ratflow/profiles/chodak-laptop/config.d/21-new-workspace b/.config/ratflow/profiles/chodak-laptop/config.d/21-new-workspace new file mode 100755 index 0000000..c3604c7 --- /dev/null +++ b/.config/ratflow/profiles/chodak-laptop/config.d/21-new-workspace @@ -0,0 +1,2 @@ +# create temporary workspace +bindsym $mod+n exec name=$(yad --entry --splash --title "Create workspace" --text "Name of temporary workspace:") && i3-msg workspace $name diff --git a/.config/ratflow/profiles/chodak-laptop/config.d/30-theme b/.config/ratflow/profiles/chodak-laptop/config.d/30-theme new file mode 100755 index 0000000..f826349 --- /dev/null +++ b/.config/ratflow/profiles/chodak-laptop/config.d/30-theme @@ -0,0 +1,50 @@ +#------------------------------------------------ +# +# appearance +# +#------------------------------------------------ + +# font +set $fontName Source Sans Pro Semi-Bold +set $fontSize 10 +set $barFontSize 9 + +# colors +set $clFocusedActiveBorder #252525 +set $clFocusedActiveBackground #252525 +set $clFocusedActiveText #D9D9D9 +set $clFocusedInactiveBorder #101010 +set $clFocusedinactiveBackground #101010 +set $clFocusedInactiveText #606060 +set $clUnfocusedBorder #101010 +set $clUnfocusedBackground #000000 +set $clUnfocusedText #606060 +set $clUrgentBorder #F05000 +set $clUrgentBackground #F05000 +set $clUrgentText #F0F0F0 +set $clIndicator #101010 + + +# --------- fonts --------- + +# Font for window titles. Will also be used by the bar unless a different font +# is used in the bar {} block below. + +font pango: $fontName $fontSize +#font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1 + +# This font is widely installed, provides lots of unicode glyphs, right-to-left +# text rendering and scalability on retina/hidpi displays (thanks to pango). +#font pango:DejaVu Sans Mono 8 + + +# --------- windows --------- + +# Widow Colours +# border background text indicator + client.focused $clFocusedActiveBorder $clFocusedActiveBackground $clFocusedActiveText $clIndicator + client.focused_inactive $clFocusedInactiveBorder $clFocusedinactiveBackground $clFocusedInactiveText $clIndicator + client.unfocused $clUnfocusedBorder $clUnfocusedBackground $clUnfocusedText $clIndicator + client.urgent $clUrgentBorder $clUrgentBackground $clUrgentText $clIndicator + + diff --git a/.config/ratflow/profiles/chodak-laptop/config.d/31-bar b/.config/ratflow/profiles/chodak-laptop/config.d/31-bar new file mode 100755 index 0000000..774bbb9 --- /dev/null +++ b/.config/ratflow/profiles/chodak-laptop/config.d/31-bar @@ -0,0 +1,35 @@ + +#------------------------------------------------ +# +# i3 bar +# +#------------------------------------------------ + +# Start i3bar to display a workspace bar (plus the system information i3status +# finds out, if available) +bar { + position top + i3bar_command i3bar -t + status_command py3status -c $configDir/profiles/current/py3status.conf + font xft:$fontName, FontAwesome $barFontsize + tray_padding 0 + + #Use tray_output primary/none/ to define where the tray should be (multiple tray_output can be used) + #Remember to set any of your displays to primary (i.e. using xrandr) + #tray_output primary + + colors { + separator $clFocusedActiveText + #background $clUnfocusedBackground + background #00000070 + #statusline #FFFFFF99 + statusline $clFocusedActiveText + +# border background text + focused_workspace $clFocusedActiveBackground $clFocusedActiveBackground $clFocusedActiveText + active_workspace $clFocusedActiveBorder $clFocusedActiveBackground $clFocusedActiveText + inactive_workspace $clUnfocusedBackground $clUnfocusedBackground $clUnfocusedText + urgent_workspace $clUrgentBorder $clUrgentBackground $clUrgentText + } +} + diff --git a/.config/ratflow/profiles/chodak-laptop/config.d/40-assignments b/.config/ratflow/profiles/chodak-laptop/config.d/40-assignments new file mode 100755 index 0000000..912db32 --- /dev/null +++ b/.config/ratflow/profiles/chodak-laptop/config.d/40-assignments @@ -0,0 +1,42 @@ +#------------------------------------------------ +# +# assign applications to workspaces +# +#------------------------------------------------ + +assign [class="Qtcreator"] $workspace2 +assign [class="Eclipse"] $workspace2 +#assign [class="Kate"] $workspace2 +#assign [class="Gedit"] $workspace2 +#assign [class="Emacs"] $workspace2 + +assign [class="Iceweasel"] $workspace3 +assign [class="Firefox"] $workspace3 +assign [class="Chromium-browser"] $workspace3 +assign [class="Chrome"] $workspace3 + +assign [class="Pcmanfm"] $workspace4 +assign [class="Dolphin"] $workspace4 +assign [class="Nautilus"] $workspace4 +assign [class="Thunar"] $workspace4 + +assign [class="Thunderbird"] $workspace5 + +assign [class="Kadu"] $workspace6 +assign [class="Skype"] $workspace6 +assign [class="Pidgin"] $workspace6 +assign [class="Kopete"] $workspace6 +assign [class="Telegram"] $workspace6 + +#assign [class="Smplayer"] $workspace7 +#assign [class="Smplayer2"] $workspace7 +#assign [class="Mplayer"] $workspace7 +#assign [class="Vlc"] $workspace7 +#assign [class="dragonplayer"] $workspace7 +assign [class="Kodi"] $workspace7 + +assign [class="Clementine"] $workspace10 +assign [class="Rhythmbox"] $workspace10 +assign [class="Spotify"] $workspace10 + +assign [class="VirtualBox"] $workspace11 diff --git a/.config/ratflow/profiles/chodak-laptop/config.d/50-floating b/.config/ratflow/profiles/chodak-laptop/config.d/50-floating new file mode 100755 index 0000000..6a11070 --- /dev/null +++ b/.config/ratflow/profiles/chodak-laptop/config.d/50-floating @@ -0,0 +1,12 @@ +#------------------------------------------------ +# +# floating windows +# +#------------------------------------------------ + + +for_window [class="screengrab"] floating enable +for_window [class="osmo"] floating enable +for_window [class="gsimplecal"] floating enable + +${{fdir="$HOME/.config/ratflow/profiles/current/config.d/floating.d" && test -d $fdir && cat $fdir/*.float}} diff --git a/.config/ratflow/profiles/chodak-laptop/config.d/90-exec b/.config/ratflow/profiles/chodak-laptop/config.d/90-exec new file mode 100755 index 0000000..668f162 --- /dev/null +++ b/.config/ratflow/profiles/chodak-laptop/config.d/90-exec @@ -0,0 +1,42 @@ +#------------------------------------------------ +# +# autostart - login command execution +# +#------------------------------------------------ + +# ensure that notification daemon is running +exec --no-startup-id dunst + +# run window composer (with 2ms per step while faiding) +exec --no-startup-id compton -f -D 2 + +# enable touchpad with tapping and two-finger scroll +exec --no-startup-id synclient TouchpadOff=0 +exec --no-startup-id synclient TapButton1=1 +exec --no-startup-id synclient VertTwoFingerScroll=1 +exec --no-startup-id synclient VertHysteresis=30 +exec --no-startup-id synclient HorizHysteresis=30 + +# tune down screen colors with redshift +# exec --no-startup-id redshift -l 52.43:15.15 -m randr + +# run network manager +exec --no-startup-id nm-applet + +# run clipboard manager +#exec --no-startup-id bash -c "/usr/bin/clipit &" +exec --no-startup-id parcellite + +# run bluetooth manager +#exec blueman-applet + +# run tray icon with calendar +#exec gtrayicon --activate="gsimplecal" --deactivate="killall gsimplecal" --activate-icon="/usr/share/ratflow/icons/cal-activate.png" --deactivate-icon="/usr/share/ratflow/icons/cal-deactivate.png" + +# other autostart apps +#exec terminator -p ratflow-terminator +#exec pcmanfm +#exec firefox +#exec thunderbird + + diff --git a/.config/ratflow/profiles/chodak-laptop/config.d/91-exec_always b/.config/ratflow/profiles/chodak-laptop/config.d/91-exec_always new file mode 100755 index 0000000..03f5a73 --- /dev/null +++ b/.config/ratflow/profiles/chodak-laptop/config.d/91-exec_always @@ -0,0 +1,7 @@ +#------------------------------------------------ +# +# autostart - (re)load command execution +# +#------------------------------------------------ + +exec_always --no-startup-id xset dpms 600 600 600 diff --git a/.config/ratflow/profiles/chodak-laptop/config.d/floating.d/Osmo.float b/.config/ratflow/profiles/chodak-laptop/config.d/floating.d/Osmo.float new file mode 100755 index 0000000..ce309ef --- /dev/null +++ b/.config/ratflow/profiles/chodak-laptop/config.d/floating.d/Osmo.float @@ -0,0 +1 @@ +for_window [class="Osmo"] floating enable diff --git a/.config/ratflow/profiles/chodak-laptop/config.d/floating.d/Skype.float b/.config/ratflow/profiles/chodak-laptop/config.d/floating.d/Skype.float new file mode 100755 index 0000000..49b9aca --- /dev/null +++ b/.config/ratflow/profiles/chodak-laptop/config.d/floating.d/Skype.float @@ -0,0 +1 @@ +for_window [class="Skype"] floating enable diff --git a/.config/ratflow/profiles/chodak-laptop/config.d/floating.d/Yad.float b/.config/ratflow/profiles/chodak-laptop/config.d/floating.d/Yad.float new file mode 100755 index 0000000..e643250 --- /dev/null +++ b/.config/ratflow/profiles/chodak-laptop/config.d/floating.d/Yad.float @@ -0,0 +1 @@ +for_window [class="Yad"] floating enable diff --git a/.config/ratflow/profiles/chodak-laptop/env b/.config/ratflow/profiles/chodak-laptop/env new file mode 100755 index 0000000..6433bbc --- /dev/null +++ b/.config/ratflow/profiles/chodak-laptop/env @@ -0,0 +1 @@ +export RF_MOD_KEY=Mod4 diff --git a/.config/ratflow/profiles/chodak-laptop/py3status.conf b/.config/ratflow/profiles/chodak-laptop/py3status.conf new file mode 100755 index 0000000..e950fa1 --- /dev/null +++ b/.config/ratflow/profiles/chodak-laptop/py3status.conf @@ -0,0 +1,77 @@ +# i3status configuration file. +# see "man i3status" for documentation. + +# It is important that this file is edited as UTF-8. +# The following line should contain a sharp s: +# ß +# If the above line is not correctly displayed, fix your editor first! + +general { + output_format = "i3bar" + colors = true + interval = 10 +} + +order += "volume_status" +order += "diskdata" +order += "netdata" +order += "networkmanager" +order += "battery all" +order += "external_script top" +order += "sysdata mem" +order += "tztime local" + +diskdata { + # disk = "/" + format = "{free}GB" +} + +networkmanager { + # devices = ['e*'] # ethernet only + #devices = ['w*'] # wireless only + devices = ["*"] + format = "{format_device}" + format_device = "[{ip4_address1}]" + format_device_separator = " / " +} + +external_script top { + cache_timeout = 10 + script_path = "/usr/share/ratflow/scripts/top" +} + +netdata { + cache_timeout = 5 + format = '{nic}: [{down}↓ {up}↑]' +} + +volume_status { + thresholds = [ + (0, "#FF0000"), + (10, ""), + (100, "#FFFF00") + ] +} + +sysdata cpu { + cache_timeout = 5 + format = "CPU: {cpu_used_percent}%" + +} + +sysdata mem { + cache_timeout = 5 + format = " {mem_used_percent}%" + +} + +battery all { + format = "%status %percentage %remaining" +} + +tztime local { + format = "%d-%m-%Y %H:%M" +} + + + diff --git a/.zshrc b/.zshrc index 937ff26..9aa1175 100644 --- a/.zshrc +++ b/.zshrc @@ -186,6 +186,7 @@ alias git-config-pb='git config user.name "Łukasz Chodyła" && git config user. alias git-config-ch='git config user.name "chodak166" && git config user.email "chodak166@op.pl"' alias config='/usr/bin/git --git-dir=$HOME/.dotfiles.git/ --work-tree=$HOME' alias v='nvim' +alias se=sudoedit config config status.showUntrackedFiles no