From 8f0d75f6855e4126be1d19b51e4642ec32d2887c Mon Sep 17 00:00:00 2001 From: Bas Grolleman Date: Sat, 14 Jun 2025 09:19:15 +0200 Subject: [PATCH] Adding picom --- ansible.desktop/tasks/base_packages.yml | 6 +++ i3/config | 16 +++++-- i3/workspace-6.json | 53 +++++++++++++++++++++ picom.conf | 63 +++++++++++++++++++++++++ polybar/config.ini | 2 +- 5 files changed, 136 insertions(+), 4 deletions(-) create mode 100644 i3/workspace-6.json create mode 100644 picom.conf diff --git a/ansible.desktop/tasks/base_packages.yml b/ansible.desktop/tasks/base_packages.yml index 44dfd5d..29ba18e 100644 --- a/ansible.desktop/tasks/base_packages.yml +++ b/ansible.desktop/tasks/base_packages.yml @@ -21,6 +21,7 @@ - playerctl - blueman - pavucontrol + - picom - name: Development Environment become: true @@ -44,3 +45,8 @@ args: creates: /usr/bin/brave-browser +- name: Streamdeck + community.general.flatpak: + name: com.core447.StreamController + state: present + method: user diff --git a/i3/config b/i3/config index 7298234..8cc3bdd 100644 --- a/i3/config +++ b/i3/config @@ -8,6 +8,8 @@ # i3 config file (v4) # # Please see https://i3wm.org/docs/userguide.html for a complete reference! +# Some reason system boots wrong resolution +exec --no-startup-id ~/bin/set_display_ultrawide # Alt set $mod Mod1 @@ -31,7 +33,7 @@ exec --no-startup-id dex --autostart --environment i3 # xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the # screen before suspend. Use loginctl lock-session to lock your screen. -exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork +exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork -i ~/Documents/Resources/Backgrounds/51202139522_fbf4788f42_o.png # NetworkManager is the most popular way to manage wireless networks on Linux, # and nm-applet is a desktop environment-independent system tray GUI for it. @@ -63,6 +65,7 @@ bindsym $mod+Shift+q kill # A more modern dmenu replacement is rofi: bindcode $win+65 exec "rofi -modi drun,run -show drun" bindcode $mod+65 exec "rofi -show window" +bindcode Mod4+v exec 'rofi -modi "clipboard:greenclip print" -show clipboard -run-command "{cmd}"' # There also is i3-dmenu-desktop which only displays applications shipping a # .desktop file. It is a wrapper around dmenu, so you need that installed. # bindcode $mod+40 exec --no-startup-id i3-dmenu-desktop @@ -191,13 +194,20 @@ bindsym $mod+r mode "resize" exec_always --no-startup-id $HOME/.config/polybar/launch.sh -default_border normal 5px +default_border pixel 1px +smart_borders on # This needs a newer verison of i3 then I have on my desktop right now -#gaps inner 5px +gaps inner 5px # Turn off my screen after 10 min of in-activity exec --no-startup-id xset dpms 600 exec --no-startup-id /usr/bin/blueman-applet exec --no-startup-id nitrogen --restore +exec --no-startup-id greenclip deamon +exec --no-startup-id flatpak run com.core447.StreamController -b +exec --no-startup-id picom bindcode $win+. exec flatpak run it.mijorus.smile + +exec --no-startup-id i3-msg "workspace 6; append_layout ~/.config/i3/workspace-6.json" + diff --git a/i3/workspace-6.json b/i3/workspace-6.json new file mode 100644 index 0000000..1bbf56c --- /dev/null +++ b/i3/workspace-6.json @@ -0,0 +1,53 @@ +// vim:ts=4:sw=4:et +{ + "marks": [], + "name": "YouTube Music", + "percent": 0.25, + "swallows": [ + { + "class": "^Brave\\-browser$", + "instance": "^crx_cinhimbnkkaeohfgghhklpknlkffjgod$", + "title": "^YouTube\\ Music$" + } + ], + "type": "con" +} + +{ + "marks": [], + "name": "WhatsApp Web", + "percent": 0.25, + "swallows": [ + { + "class": "^Brave\\-browser$", + "instance": "^crx_hnpfjngllnobngcgfapefoaidbinmjnm$", + "title": "^WhatsApp\\ Web$" + } + ], + "type": "con" +} + +{ + "marks": [], + "name": "WhatsApp Web", + "percent": 0.25, + "swallows": [ + { + "class": "^Brave\\-browser$", + "instance": "^crx_hnpfjngllnobngcgfapefoaidbinmjnm$" + } + ], + "type": "con" +} + +{ + "marks": [], + "name": "Friends - Discord", + "percent": 0.25, + "swallows": [ + { + "class": "^discord$" + } + ], + "type": "con" +} diff --git a/picom.conf b/picom.conf new file mode 100644 index 0000000..e80712a --- /dev/null +++ b/picom.conf @@ -0,0 +1,63 @@ +shadow = false; +shadow-radius = 7; +shadow-offset-x = -7; +shadow-offset-y = -7; +shadow-exclude = [ "name = 'Notification'", "class_g = 'Conky'", "class_g ?= 'Notify-osd'", "class_g = 'Cairo-clock'", "_GTK_FRAME_EXTENTS@:c" ]; +fading = true; +fade-in-step = 0.03; +fade-out-step = 0.03; +inactive-opacity = 0.9; +frame-opacity = 0.7; +inactive-opacity-override = false; +focus-exclude = [ "class_g = 'Cairo-clock'" ]; +corner-radius = 10.0; +rounded-corners-exclude = [ "window_type = 'dock'", "window_type = 'desktop'" ]; +blur-kern = "3x3box"; +blur-background-exclude = [ "window_type = 'dock'", "window_type = 'desktop'", "_GTK_FRAME_EXTENTS@:c" ]; +backend = "glx"; +vsync = true; +mark-wmwin-focused = true; +mark-ovredir-focused = true; +detect-rounded-corners = true; +detect-client-opacity = true; +detect-transient = true; +use-damage = true; +log-level = "warn"; +wintypes : +{ + tooltip : + { + fade = true; + shadow = true; + opacity = 0.75; + focus = true; + full-shadow = false; + }; + dock : + { + shadow = false; + clip-shadow-above = false; + full-shadow = false; + opacity = 1.0; + focus = true; + }; + dnd : + { + shadow = false; + }; + popup_menu : + { + opacity = 0.8; + }; + dropdown_menu : + { + opacity = 0.8; + }; + menu : + { + shadow = false; + }; +}; +blur-background = true; +shadow-opacity = 0.1; +blur-background-frame = false; diff --git a/polybar/config.ini b/polybar/config.ini index facbe50..e73123c 100644 --- a/polybar/config.ini +++ b/polybar/config.ini @@ -3,7 +3,7 @@ monitor = DP-0 width = 100% height = 34 -background = #00000000 +background = #cc000000 foreground = #ccffffff line-color = ${bar/bottom.background}