From 930ccd9b4ce207403441001b0ee26ae84fa94f3a Mon Sep 17 00:00:00 2001 From: chodak166 Date: Sun, 3 May 2026 16:56:20 +0200 Subject: [PATCH] Added ratflow pc profile --- .../ratflow/profiles/chodak_pc/autoapp.conf | 13 + .config/ratflow/profiles/chodak_pc/config-gen | 612 ++++++++++++++++++ .../profiles/chodak_pc/config.d/01-variables | 15 + .../profiles/chodak_pc/config.d/10-workspaces | 56 ++ .../profiles/chodak_pc/config.d/11-outputs | 30 + .../profiles/chodak_pc/config.d/13-wallpaper | 23 + .../chodak_pc/config.d/20-keys-apps-core | 24 + .../profiles/chodak_pc/config.d/20-keys-wm | 87 +++ .../chodak_pc/config.d/21-always-float | 1 + .../profiles/chodak_pc/config.d/21-keys-apps | 22 + .../chodak_pc/config.d/21-keys-imagemagick | 9 + .../profiles/chodak_pc/config.d/21-keys-media | 40 ++ .../chodak_pc/config.d/21-keys-session | 36 ++ .../chodak_pc/config.d/21-new-workspace | 2 + .../profiles/chodak_pc/config.d/30-theme | 52 ++ .../profiles/chodak_pc/config.d/31-bar | 35 + .../chodak_pc/config.d/40-assignments | 42 ++ .../profiles/chodak_pc/config.d/50-floating | 7 + .../profiles/chodak_pc/config.d/90-exec | 45 ++ .../chodak_pc/config.d/91-exec_always | 7 + .../config.d/floating.d/Gsimplecal.float | 1 + .../chodak_pc/config.d/floating.d/Osmo.float | 1 + .../chodak_pc/config.d/floating.d/QNapi.float | 1 + .../config.d/floating.d/Vncviewer.float | 1 + .../chodak_pc/config.d/floating.d/Yad.float | 1 + .../config.d/floating.d/graviglass-sim.float | 1 + .../config.d/floating.d/qhourglass.float | 1 + .../config.d/floating.d/screengrab.float | 1 + .config/ratflow/profiles/chodak_pc/env | 1 + .../ratflow/profiles/chodak_pc/i3blocks.conf | 191 ++++++ .../ratflow/profiles/chodak_pc/i3status.conf | 47 ++ .../ratflow/profiles/chodak_pc/py3status.conf | 77 +++ 32 files changed, 1482 insertions(+) create mode 100644 .config/ratflow/profiles/chodak_pc/autoapp.conf create mode 100644 .config/ratflow/profiles/chodak_pc/config-gen create mode 100644 .config/ratflow/profiles/chodak_pc/config.d/01-variables create mode 100644 .config/ratflow/profiles/chodak_pc/config.d/10-workspaces create mode 100644 .config/ratflow/profiles/chodak_pc/config.d/11-outputs create mode 100644 .config/ratflow/profiles/chodak_pc/config.d/13-wallpaper create mode 100644 .config/ratflow/profiles/chodak_pc/config.d/20-keys-apps-core create mode 100644 .config/ratflow/profiles/chodak_pc/config.d/20-keys-wm create mode 100644 .config/ratflow/profiles/chodak_pc/config.d/21-always-float create mode 100644 .config/ratflow/profiles/chodak_pc/config.d/21-keys-apps create mode 100644 .config/ratflow/profiles/chodak_pc/config.d/21-keys-imagemagick create mode 100644 .config/ratflow/profiles/chodak_pc/config.d/21-keys-media create mode 100644 .config/ratflow/profiles/chodak_pc/config.d/21-keys-session create mode 100644 .config/ratflow/profiles/chodak_pc/config.d/21-new-workspace create mode 100644 .config/ratflow/profiles/chodak_pc/config.d/30-theme create mode 100644 .config/ratflow/profiles/chodak_pc/config.d/31-bar create mode 100644 .config/ratflow/profiles/chodak_pc/config.d/40-assignments create mode 100644 .config/ratflow/profiles/chodak_pc/config.d/50-floating create mode 100644 .config/ratflow/profiles/chodak_pc/config.d/90-exec create mode 100644 .config/ratflow/profiles/chodak_pc/config.d/91-exec_always create mode 100644 .config/ratflow/profiles/chodak_pc/config.d/floating.d/Gsimplecal.float create mode 100644 .config/ratflow/profiles/chodak_pc/config.d/floating.d/Osmo.float create mode 100644 .config/ratflow/profiles/chodak_pc/config.d/floating.d/QNapi.float create mode 100644 .config/ratflow/profiles/chodak_pc/config.d/floating.d/Vncviewer.float create mode 100644 .config/ratflow/profiles/chodak_pc/config.d/floating.d/Yad.float create mode 100644 .config/ratflow/profiles/chodak_pc/config.d/floating.d/graviglass-sim.float create mode 100644 .config/ratflow/profiles/chodak_pc/config.d/floating.d/qhourglass.float create mode 100644 .config/ratflow/profiles/chodak_pc/config.d/floating.d/screengrab.float create mode 100644 .config/ratflow/profiles/chodak_pc/env create mode 100644 .config/ratflow/profiles/chodak_pc/i3blocks.conf create mode 100644 .config/ratflow/profiles/chodak_pc/i3status.conf create mode 100644 .config/ratflow/profiles/chodak_pc/py3status.conf diff --git a/.config/ratflow/profiles/chodak_pc/autoapp.conf b/.config/ratflow/profiles/chodak_pc/autoapp.conf new file mode 100644 index 0000000..a371e3e --- /dev/null +++ b/.config/ratflow/profiles/chodak_pc/autoapp.conf @@ -0,0 +1,13 @@ +{ + "1": "terminator", + "2": "qtcreator || eclipse || emacs ", + "3": "firefox", + "4": "pcmanfm", + "5": "thunderbird", + "6": "slack || telegram", + "7": "kodi", + "8": "howl || kate || gedit", + "9": "howl || kate || gedit", + "0": "clementine", + "vm": "virtualbox || openxenmanager" +} diff --git a/.config/ratflow/profiles/chodak_pc/config-gen b/.config/ratflow/profiles/chodak_pc/config-gen new file mode 100644 index 0000000..d2668d9 --- /dev/null +++ b/.config/ratflow/profiles/chodak_pc/config-gen @@ -0,0 +1,612 @@ + +#---------------------------------------------------------------- +# DO NOT EDIT THIS FILE +# +# This file has been generated by rfreload script. +# Source files can be edited before calling rfreload in: +# /home/chodak/.config/ratflow/profiles/current/config.d +# +# Run 'rfreload -i' to print complete config file list. +# +# Use ${{}} syntax to include shell command result +# in configuration file content. Environment variables can be +# added to /env file. Run 'rfreload' to reload +# current profile. See 'rfreload --help' to learn more. +# +#---------------------------------------------------------------- + + +################################################################# +# /home/chodak/.config/ratflow/profiles/current/config.d/01-variables: + +#------------------------------------------------ +# +# variable definitions +# +#------------------------------------------------ + +# what will be yout mod key? Use Mod4 for "window" key, Mod1 for "alt" +set $mod Mod4 +#set $mod Mod1 + +# helper scripts location +set $scriptsDir /usr/share/ratflow/scripts + +# config dir +set $configDir /home/chodak/.config/ratflow +################################################################# +# /home/chodak/.config/ratflow/profiles/current/config.d/10-workspaces: + +#------------------------------------------------ +# +# 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 + + + +################################################################# +# /home/chodak/.config/ratflow/profiles/current/config.d/11-outputs: + +#------------------------------------------------ +# +# video output management +# +#------------------------------------------------ + +# monitors - use "xrandr --listmonitors" to obtain your output names +set $rightOutput DP-1 +set $leftOutput HDMI-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" + +################################################################# +# /home/chodak/.config/ratflow/profiles/current/config.d/13-wallpaper: + +#------------------------------------------------ +# +# wallpaper settings +# +#------------------------------------------------ + +# wallpapers (second for multihead) +#set $wallpaper1 /usr/share/ratflow/images/rf_wp_06.jpg +#set $wallpaper2 /usr/share/ratflow/images/rf_wp_06.jpg + +#set $wallpaper1 /home/chodak/Pictures/wallpapers/enso02.png +#set $wallpaper2 /home/chodak/Pictures/wallpapers/enso02.png +#set $wallpaper1 /home/chodak/.config/ratflow/basil02-up.jpeg +#set $wallpaper2 /home/chodak/.config/ratflow/basil02-up.jpeg +set $wallpaper1 /home/chodak/.config/ratflow/chill-idg2-s.jpeg +set $wallpaper2 /home/chodak/.config/ratflow/chilli-idg2-s.jpeg + +# 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 + +################################################################# +# /home/chodak/.config/ratflow/profiles/current/config.d/20-keys-apps-core: + +#------------------------------------------------ +# +# 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 ulauncher +bindsym Mod1+F2 exec ulauncher + +# run app assigned to current workspace +bindsym $mod+Shift+a exec $scriptsDir/autoapp + +bindsym Ctrl+Mod1+h exec diodon + +################################################################# +# /home/chodak/.config/ratflow/profiles/current/config.d/20-keys-wm: + +#------------------------------------------------ +# +# 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" + +################################################################# +# /home/chodak/.config/ratflow/profiles/current/config.d/21-always-float: + +bindsym $mod+Shift+f exec $scriptsDir/always-float +################################################################# +# /home/chodak/.config/ratflow/profiles/current/config.d/21-keys-apps: + +#------------------------------------------------ +# +# 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 bash -c 'pgrep redshift && killall redshift || 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 &" +################################################################# +# /home/chodak/.config/ratflow/profiles/current/config.d/21-keys-imagemagick: + +#------------------------------------------------ +# +# imagemagick bindings +# +#------------------------------------------------ + +# silent screenshot of active window +bindsym $mod+Shift+s exec bash -c 'mkdir $HOME/screenshots'; exec bash -c 'import -window "$(xdotool getwindowfocus -f)" $HOME/screenshots/$(date +%s).png' + +################################################################# +# /home/chodak/.config/ratflow/profiles/current/config.d/21-keys-media: + +#------------------------------------------------ +# +# media player bindings +# +#------------------------------------------------ + +set $defaultAudioSink alsa_output.pci-0000_00_1b.0.analog-stereo + +# Pulse Audio controls +bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume $defaultAudioSink +5% +bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume $defaultAudioSink -5% +bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute $defaultAudioSink toggle + +# Sreen brightness controls +bindsym XF86MonBrightnessUp exec xbacklight -inc 20 # increase screen brightness +bindsym XF86MonBrightnessDown exec xbacklight -dec 20 # decrease screen brightness + + +# 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 XF86AudioPlay exec playerctl play-pause +#bindsym XF86AudioPause exec clementine --pause +bindsym XF86AudioPause exec playerctl 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 + +bindsym $mod+b exec sleep 0.5 && xset dpms force off + +bindsym $mod+Mod1+r exec recordmydesktop -o ~/Pictures/recordmydesktop/$(date +%Y%m%d).ogv +bindsym $mod+Shift+Mod1+r exec killall -SIGTERM recordmydesktop + + +################################################################# +# /home/chodak/.config/ratflow/profiles/current/config.d/21-keys-session: + +#------------------------------------------------ +# +# session/power management +# +#------------------------------------------------ + +# regenerate and reload i3 configuration file +bindsym $mod+Shift+c exec rfreload + +# 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" + +bindsym $mod+Escape exec systemctl suspend + +bindsym $mod+Shift+b exec xscreensaver-command -activate + +################################################################# +# /home/chodak/.config/ratflow/profiles/current/config.d/21-new-workspace: + +# create temporary workspace +bindsym $mod+n exec name=$(yad --entry --splash --title "Create workspace" --text "Name of temporary workspace:") && i3-msg workspace $name +################################################################# +# /home/chodak/.config/ratflow/profiles/current/config.d/30-theme: + +#------------------------------------------------ +# +# appearance +# +#------------------------------------------------ + +# font +#set $fontName Source Sans Pro Semi-Bold +set $fontName Bitstream Vera Sans +#set $fontName Source Sans Pro Semi-Bold +set $fontSize 10 +set $barFontSize 10 + +# colors +set $clFocusedActiveBorder #252525 +set $clFocusedActiveBackground #252525 +set $clFocusedActiveText #75B0D0 +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 + + +################################################################# +# /home/chodak/.config/ratflow/profiles/current/config.d/31-bar: + + +#------------------------------------------------ +# +# 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 + } +} + +################################################################# +# /home/chodak/.config/ratflow/profiles/current/config.d/40-assignments: + +#------------------------------------------------ +# +# 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 +################################################################# +# /home/chodak/.config/ratflow/profiles/current/config.d/50-floating: + +#------------------------------------------------ +# +# floating windows +# +#------------------------------------------------ + +for_window [class="Gsimplecal"] floating enable +for_window [class="Osmo"] floating enable +for_window [class="QNapi"] floating enable +for_window [class="Vncviewer"] floating enable +for_window [class="Yad"] floating enable +for_window [class="graviglass-sim"] floating enable +for_window [class="qhourglass"] floating enable +for_window [class="screengrab"] floating enable +################################################################# +# /home/chodak/.config/ratflow/profiles/current/config.d/90-exec: + +#------------------------------------------------ +# +# 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 picom -f -D 2 -C --vsync +#exec --no-startup-id compton --config ~/.config/compton.conf -b + +# 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 bash -c "/usr/bin/diodon &" +#exec --no-startup-id clipit +#exec --no-startup-id qlipper + +# 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 + + +################################################################# +# /home/chodak/.config/ratflow/profiles/current/config.d/91-exec_always: + +#------------------------------------------------ +# +# autostart - (re)load command execution +# +#------------------------------------------------ + + diff --git a/.config/ratflow/profiles/chodak_pc/config.d/01-variables b/.config/ratflow/profiles/chodak_pc/config.d/01-variables new file mode 100644 index 0000000..c40a314 --- /dev/null +++ b/.config/ratflow/profiles/chodak_pc/config.d/01-variables @@ -0,0 +1,15 @@ +#------------------------------------------------ +# +# 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"}} diff --git a/.config/ratflow/profiles/chodak_pc/config.d/10-workspaces b/.config/ratflow/profiles/chodak_pc/config.d/10-workspaces new file mode 100644 index 0000000..3dc674a --- /dev/null +++ b/.config/ratflow/profiles/chodak_pc/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_pc/config.d/11-outputs b/.config/ratflow/profiles/chodak_pc/config.d/11-outputs new file mode 100644 index 0000000..893c667 --- /dev/null +++ b/.config/ratflow/profiles/chodak_pc/config.d/11-outputs @@ -0,0 +1,30 @@ +#------------------------------------------------ +# +# video output management +# +#------------------------------------------------ + +# monitors - use "xrandr --listmonitors" to obtain your output names +set $rightOutput ${{xrandr | grep ' connected' | awk 'NR==2{print $1}'}} +set $leftOutput ${{xrandr | grep ' connected' | awk 'NR==1{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_pc/config.d/13-wallpaper b/.config/ratflow/profiles/chodak_pc/config.d/13-wallpaper new file mode 100644 index 0000000..fffad12 --- /dev/null +++ b/.config/ratflow/profiles/chodak_pc/config.d/13-wallpaper @@ -0,0 +1,23 @@ +#------------------------------------------------ +# +# wallpaper settings +# +#------------------------------------------------ + +# wallpapers (second for multihead) +#set $wallpaper1 /usr/share/ratflow/images/rf_wp_06.jpg +#set $wallpaper2 /usr/share/ratflow/images/rf_wp_06.jpg + +#set $wallpaper1 /home/chodak/Pictures/wallpapers/enso02.png +#set $wallpaper2 /home/chodak/Pictures/wallpapers/enso02.png +#set $wallpaper1 /home/chodak/.config/ratflow/basil02-up.jpeg +#set $wallpaper2 /home/chodak/.config/ratflow/basil02-up.jpeg +set $wallpaper1 /home/chodak/.config/ratflow/chill-idg2-s.jpeg +set $wallpaper2 /home/chodak/.config/ratflow/chilli-idg2-s.jpeg + +# 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_pc/config.d/20-keys-apps-core b/.config/ratflow/profiles/chodak_pc/config.d/20-keys-apps-core new file mode 100644 index 0000000..dad7297 --- /dev/null +++ b/.config/ratflow/profiles/chodak_pc/config.d/20-keys-apps-core @@ -0,0 +1,24 @@ +#------------------------------------------------ +# +# 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 ulauncher +bindsym Mod1+F2 exec ulauncher + +# run app assigned to current workspace +bindsym $mod+Shift+a exec $scriptsDir/autoapp + +bindsym Ctrl+Mod1+h exec diodon + diff --git a/.config/ratflow/profiles/chodak_pc/config.d/20-keys-wm b/.config/ratflow/profiles/chodak_pc/config.d/20-keys-wm new file mode 100644 index 0000000..c193eac --- /dev/null +++ b/.config/ratflow/profiles/chodak_pc/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_pc/config.d/21-always-float b/.config/ratflow/profiles/chodak_pc/config.d/21-always-float new file mode 100644 index 0000000..439c385 --- /dev/null +++ b/.config/ratflow/profiles/chodak_pc/config.d/21-always-float @@ -0,0 +1 @@ +bindsym $mod+Shift+f exec $scriptsDir/always-float diff --git a/.config/ratflow/profiles/chodak_pc/config.d/21-keys-apps b/.config/ratflow/profiles/chodak_pc/config.d/21-keys-apps new file mode 100644 index 0000000..704dc90 --- /dev/null +++ b/.config/ratflow/profiles/chodak_pc/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 bash -c 'pgrep redshift && killall redshift || 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_pc/config.d/21-keys-imagemagick b/.config/ratflow/profiles/chodak_pc/config.d/21-keys-imagemagick new file mode 100644 index 0000000..356817f --- /dev/null +++ b/.config/ratflow/profiles/chodak_pc/config.d/21-keys-imagemagick @@ -0,0 +1,9 @@ +#------------------------------------------------ +# +# imagemagick bindings +# +#------------------------------------------------ + +# silent screenshot of active window +bindsym $mod+Shift+s exec bash -c 'mkdir $HOME/screenshots'; exec bash -c 'import -window "$(xdotool getwindowfocus -f)" $HOME/screenshots/$(date +%s).png' + diff --git a/.config/ratflow/profiles/chodak_pc/config.d/21-keys-media b/.config/ratflow/profiles/chodak_pc/config.d/21-keys-media new file mode 100644 index 0000000..a505f73 --- /dev/null +++ b/.config/ratflow/profiles/chodak_pc/config.d/21-keys-media @@ -0,0 +1,40 @@ +#------------------------------------------------ +# +# media player bindings +# +#------------------------------------------------ + +set $defaultAudioSink ${{pactl info | grep "Default Sink" | awk '{print $NF}' }} + +# Pulse Audio controls +bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume $defaultAudioSink +5% +bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume $defaultAudioSink -5% +bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute $defaultAudioSink toggle + +# Sreen brightness controls +bindsym XF86MonBrightnessUp exec xbacklight -inc 20 # increase screen brightness +bindsym XF86MonBrightnessDown exec xbacklight -dec 20 # decrease screen brightness + + +# 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 XF86AudioPlay exec playerctl play-pause +#bindsym XF86AudioPause exec clementine --pause +bindsym XF86AudioPause exec playerctl 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 + +bindsym $mod+b exec sleep 0.5 && xset dpms force off + +bindsym $mod+Mod1+r exec recordmydesktop -o ~/Pictures/recordmydesktop/$(date +%Y%m%d).ogv +bindsym $mod+Shift+Mod1+r exec killall -SIGTERM recordmydesktop + + diff --git a/.config/ratflow/profiles/chodak_pc/config.d/21-keys-session b/.config/ratflow/profiles/chodak_pc/config.d/21-keys-session new file mode 100644 index 0000000..a9c2781 --- /dev/null +++ b/.config/ratflow/profiles/chodak_pc/config.d/21-keys-session @@ -0,0 +1,36 @@ +#------------------------------------------------ +# +# session/power management +# +#------------------------------------------------ + +# regenerate and reload i3 configuration file +bindsym $mod+Shift+c exec rfreload + +# 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" + +bindsym $mod+Escape exec systemctl suspend + +bindsym $mod+Shift+b exec xscreensaver-command -activate + diff --git a/.config/ratflow/profiles/chodak_pc/config.d/21-new-workspace b/.config/ratflow/profiles/chodak_pc/config.d/21-new-workspace new file mode 100644 index 0000000..c3604c7 --- /dev/null +++ b/.config/ratflow/profiles/chodak_pc/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_pc/config.d/30-theme b/.config/ratflow/profiles/chodak_pc/config.d/30-theme new file mode 100644 index 0000000..f3a2e99 --- /dev/null +++ b/.config/ratflow/profiles/chodak_pc/config.d/30-theme @@ -0,0 +1,52 @@ +#------------------------------------------------ +# +# appearance +# +#------------------------------------------------ + +# font +#set $fontName Source Sans Pro Semi-Bold +set $fontName Bitstream Vera Sans +#set $fontName Source Sans Pro Semi-Bold +set $fontSize 10 +set $barFontSize 10 + +# colors +set $clFocusedActiveBorder #252525 +set $clFocusedActiveBackground #252525 +set $clFocusedActiveText #75B0D0 +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_pc/config.d/31-bar b/.config/ratflow/profiles/chodak_pc/config.d/31-bar new file mode 100644 index 0000000..c0d7d5d --- /dev/null +++ b/.config/ratflow/profiles/chodak_pc/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_pc/config.d/40-assignments b/.config/ratflow/profiles/chodak_pc/config.d/40-assignments new file mode 100644 index 0000000..912db32 --- /dev/null +++ b/.config/ratflow/profiles/chodak_pc/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_pc/config.d/50-floating b/.config/ratflow/profiles/chodak_pc/config.d/50-floating new file mode 100644 index 0000000..e63204b --- /dev/null +++ b/.config/ratflow/profiles/chodak_pc/config.d/50-floating @@ -0,0 +1,7 @@ +#------------------------------------------------ +# +# floating windows +# +#------------------------------------------------ + +${{fdir="$HOME/.config/ratflow/profiles/current/config.d/floating.d" && test -d $fdir && cat $fdir/*.float}} diff --git a/.config/ratflow/profiles/chodak_pc/config.d/90-exec b/.config/ratflow/profiles/chodak_pc/config.d/90-exec new file mode 100644 index 0000000..78b0fe3 --- /dev/null +++ b/.config/ratflow/profiles/chodak_pc/config.d/90-exec @@ -0,0 +1,45 @@ +#------------------------------------------------ +# +# 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 picom -f -D 2 -C --vsync +#exec --no-startup-id compton --config ~/.config/compton.conf -b + +# 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 bash -c "/usr/bin/diodon &" +#exec --no-startup-id clipit +#exec --no-startup-id qlipper + +# 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_pc/config.d/91-exec_always b/.config/ratflow/profiles/chodak_pc/config.d/91-exec_always new file mode 100644 index 0000000..5ffd3c0 --- /dev/null +++ b/.config/ratflow/profiles/chodak_pc/config.d/91-exec_always @@ -0,0 +1,7 @@ +#------------------------------------------------ +# +# autostart - (re)load command execution +# +#------------------------------------------------ + + diff --git a/.config/ratflow/profiles/chodak_pc/config.d/floating.d/Gsimplecal.float b/.config/ratflow/profiles/chodak_pc/config.d/floating.d/Gsimplecal.float new file mode 100644 index 0000000..935e4c6 --- /dev/null +++ b/.config/ratflow/profiles/chodak_pc/config.d/floating.d/Gsimplecal.float @@ -0,0 +1 @@ +for_window [class="Gsimplecal"] floating enable diff --git a/.config/ratflow/profiles/chodak_pc/config.d/floating.d/Osmo.float b/.config/ratflow/profiles/chodak_pc/config.d/floating.d/Osmo.float new file mode 100644 index 0000000..ce309ef --- /dev/null +++ b/.config/ratflow/profiles/chodak_pc/config.d/floating.d/Osmo.float @@ -0,0 +1 @@ +for_window [class="Osmo"] floating enable diff --git a/.config/ratflow/profiles/chodak_pc/config.d/floating.d/QNapi.float b/.config/ratflow/profiles/chodak_pc/config.d/floating.d/QNapi.float new file mode 100644 index 0000000..61cabc7 --- /dev/null +++ b/.config/ratflow/profiles/chodak_pc/config.d/floating.d/QNapi.float @@ -0,0 +1 @@ +for_window [class="QNapi"] floating enable diff --git a/.config/ratflow/profiles/chodak_pc/config.d/floating.d/Vncviewer.float b/.config/ratflow/profiles/chodak_pc/config.d/floating.d/Vncviewer.float new file mode 100644 index 0000000..d93d18e --- /dev/null +++ b/.config/ratflow/profiles/chodak_pc/config.d/floating.d/Vncviewer.float @@ -0,0 +1 @@ +for_window [class="Vncviewer"] floating enable diff --git a/.config/ratflow/profiles/chodak_pc/config.d/floating.d/Yad.float b/.config/ratflow/profiles/chodak_pc/config.d/floating.d/Yad.float new file mode 100644 index 0000000..e643250 --- /dev/null +++ b/.config/ratflow/profiles/chodak_pc/config.d/floating.d/Yad.float @@ -0,0 +1 @@ +for_window [class="Yad"] floating enable diff --git a/.config/ratflow/profiles/chodak_pc/config.d/floating.d/graviglass-sim.float b/.config/ratflow/profiles/chodak_pc/config.d/floating.d/graviglass-sim.float new file mode 100644 index 0000000..ba1b374 --- /dev/null +++ b/.config/ratflow/profiles/chodak_pc/config.d/floating.d/graviglass-sim.float @@ -0,0 +1 @@ +for_window [class="graviglass-sim"] floating enable diff --git a/.config/ratflow/profiles/chodak_pc/config.d/floating.d/qhourglass.float b/.config/ratflow/profiles/chodak_pc/config.d/floating.d/qhourglass.float new file mode 100644 index 0000000..43ee573 --- /dev/null +++ b/.config/ratflow/profiles/chodak_pc/config.d/floating.d/qhourglass.float @@ -0,0 +1 @@ +for_window [class="qhourglass"] floating enable diff --git a/.config/ratflow/profiles/chodak_pc/config.d/floating.d/screengrab.float b/.config/ratflow/profiles/chodak_pc/config.d/floating.d/screengrab.float new file mode 100644 index 0000000..e47b315 --- /dev/null +++ b/.config/ratflow/profiles/chodak_pc/config.d/floating.d/screengrab.float @@ -0,0 +1 @@ +for_window [class="screengrab"] floating enable diff --git a/.config/ratflow/profiles/chodak_pc/env b/.config/ratflow/profiles/chodak_pc/env new file mode 100644 index 0000000..6433bbc --- /dev/null +++ b/.config/ratflow/profiles/chodak_pc/env @@ -0,0 +1 @@ +export RF_MOD_KEY=Mod4 diff --git a/.config/ratflow/profiles/chodak_pc/i3blocks.conf b/.config/ratflow/profiles/chodak_pc/i3blocks.conf new file mode 100644 index 0000000..e58c602 --- /dev/null +++ b/.config/ratflow/profiles/chodak_pc/i3blocks.conf @@ -0,0 +1,191 @@ +# i3blocks config file +# +# Please see man i3blocks for a complete reference! +# The man page is also hosted at http://vivien.github.io/i3blocks +# +# List of valid properties: +# +# align +# color +# command +# full_text +# instance +# interval +# label +# min_width +# name +# separator +# separator_block_width +# short_text +# signal +# urgent + +##### ratflow note #### +# +# This file uses icons from Font Awesome, +# please see: https://fortawesome.github.io/Font-Awesome/cheatsheet/ +# +# Note that some of the blocks may be using custom commands or +# scripts located in /usr/share/ratflow/scripts +# +######################### + +# Global properties +# +# The top properties below are applied to every block, but can be overridden. +# Each block command defaults to the script name to avoid boilerplate. +command=/usr/share/i3blocks/$BLOCK_NAME +separator_block_width=15 +markup=none + +# Volume indicator +# +# The first parameter sets the step (and units to display) +# The second parameter overrides the mixer selection +# See the script for details. +[volume] +#label=VOL +#label=♪ +label= +instance=Master +#instance=PCM +interval=1 +signal=10 +# use fixed volume script (better pulseaudio detection) +command=/usr/share/ratflow/scripts/volume_auto + +# Memory usage +# +# The type defaults to "mem" if the instance is not specified. +#[memory] +#label=MEM +#separator=false +#interval=30 + +#[memory] +#label=SWAP +#instance=swap +#separator=false +#interval=30 + +# Disk usage +# +# The directory defaults to $HOME if the instance is not specified. +# The script may be called with a optional argument to set the alert +# (defaults to 10 for 10%). +[disk] +#label=HOME +label= +instance=/home +interval=30 + +#[disk] +#label=ROOT +#label= +#instance=/ +#interval=30 + + +# Network interface monitoring +# +# If the instance is not specified, use the interface used for default route. +# The address can be forced to IPv4 or IPv6 with -4 or -6 switches. +[iface] +#instance=wlan0 +#color=#00FF00 +interval=10 +separator=false + +[wifi] +#instance=wlp3s0 +interval=10 +separator=false + +[bandwidth] +#instance=eth0 +command=/usr/share/ratflow/scripts/bandwidth +interval=5 + +# CPU usage +# +# The script may be called with -w and -c switches to specify thresholds, +# see the script for details. +#[cpu_usage] +#label=CPU +#label= +#interval=10 +#min_width=CPU: 100.00% +#separator=false + +[load_average] +#label=CPU +label= +interval=10 +command=/usr/share/ratflow/scripts/load_average + + +# Top CPU consuming command +# +[top_app] +command=/usr/share/ratflow/scripts/top +#label=TOP +label= +interval=10 + + + +# Battery indicator +# +# The battery instance defaults to 0. +[battery] +#label=BAT +#label=⚡ +label= +#instance=1 +interval=30 + +# Date Time +# +[time] +command=date '+%Y-%m-%d %H:%M' +interval=5 + +# Generic media player support +# +# This displays "ARTIST - SONG" if a music is playing. +# Supported players are: spotify, vlc, audacious, xmms2, mplayer, and others. +#[mediaplayer] +#instance=spotify +#interval=5 +#signal=10 + +# OpenVPN support +# +# Support multiple VPN, with colors. +#[openvpn] +#interval=20 + +# Temperature +# +# Support multiple chips, though lm-sensors. +# The script may be called with -w and -c switches to specify thresholds, +# see the script for details. +#[temperature] +#label=TEMP +#interval=10 + +# Key indicators +# +# Add the following bindings to i3 config file: +# +# bindsym --release Caps_Lock exec pkill -SIGRTMIN+11 i3blocks +# bindsym --release Num_Lock exec pkill -SIGRTMIN+11 i3blocks +#[keyindicator] +#instance=CAPS +#interval=once +#signal=11 + +#[keyindicator] +#instance=NUM +#interval=once +#signal=11 diff --git a/.config/ratflow/profiles/chodak_pc/i3status.conf b/.config/ratflow/profiles/chodak_pc/i3status.conf new file mode 100644 index 0000000..7f37964 --- /dev/null +++ b/.config/ratflow/profiles/chodak_pc/i3status.conf @@ -0,0 +1,47 @@ +# 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 { + colors = true + interval = 5 +} + +order += "ipv6" +order += "disk /" +order += "wireless _first_" +order += "ethernet _first_" +order += "battery all" +order += "load" +order += "tztime local" + +wireless _first_ { + format_up = "W: (%quality at %essid) %ip" + format_down = "W: down" +} + +ethernet _first_ { + # if you use %speed, i3status requires root privileges + format_up = "E: %ip (%speed)" + format_down = "E: down" +} + +battery all { + format = "%status %percentage %remaining" +} + +tztime local { + format = "%Y-%m-%d %H:%M:%S" +} + +load { + format = "%1min" +} + +disk "/" { + format = "%avail" +} diff --git a/.config/ratflow/profiles/chodak_pc/py3status.conf b/.config/ratflow/profiles/chodak_pc/py3status.conf new file mode 100644 index 0000000..a4bc8ee --- /dev/null +++ b/.config/ratflow/profiles/chodak_pc/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" +} + + +