This commit is contained in:
Jaroslaw Konik 2023-07-21 17:34:40 +02:00
parent e1fae37676
commit 0771516462
4 changed files with 133 additions and 82 deletions

File diff suppressed because one or more lines are too long

View file

@ -13,7 +13,7 @@ set $mod Mod4
# Font for window titles. Will also be used by the bar unless a different font # Font for window titles. Will also be used by the bar unless a different font
# is used in the bar {} block below. # is used in the bar {} block below.
font pango:FiraCode Nerd Font 12 font pango:FiraCode Nerd Font 16
# This font is widely installed, provides lots of unicode glyphs, right-to-left # This font is widely installed, provides lots of unicode glyphs, right-to-left
# text rendering and scalability on retina/hidpi displays (thanks to pango). # text rendering and scalability on retina/hidpi displays (thanks to pango).
@ -22,13 +22,15 @@ font pango:FiraCode Nerd Font 12
# Start XDG autostart .desktop files using dex. See also # Start XDG autostart .desktop files using dex. See also
# https://wiki.archlinux.org/index.php/XDG_Autostart # https://wiki.archlinux.org/index.php/XDG_Autostart
exec --no-startup-id dex --autostart --environment i3 exec --no-startup-id dex --autostart --environment i3
exec --no-startup-id dunst
# The combination of xss-lock, nm-applet and pactl is a popular choice, so # The combination of xss-lock, nm-applet and pactl is a popular choice, so
# they are included here as an example. Modify as you see fit. # they are included here as an example. Modify as you see fit.
# xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the # 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. # 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 ~/Pictures/wallpaper.jpg
# NetworkManager is the most popular way to manage wireless networks on Linux, # 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. # and nm-applet is a desktop environment-independent system tray GUI for it.
@ -36,10 +38,14 @@ exec --no-startup-id nm-applet
# Use pactl to adjust volume in PulseAudio. # Use pactl to adjust volume in PulseAudio.
# set $refresh_i3status killall -SIGUSR1 i3status # set $refresh_i3status killall -SIGUSR1 i3status
# bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status
# bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status
# bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status
# bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status
bindsym XF86AudioNext exec --no-startup-id playerctl next
bindsym XF86AudioPrev exec --no-startup-id playerctl previous
bindsym XF86AudioPause exec --no-startup-id playerctl play-pause
# Use Mouse+$mod to drag floating windows to their wanted position # Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod floating_modifier $mod
@ -50,6 +56,7 @@ floating_modifier $mod
# start a terminal # start a terminal
bindsym $mod+Return exec kitty bindsym $mod+Return exec kitty
bindsym $mod+backslash exec code
# kill focused window # kill focused window
bindsym $mod+Shift+q [con_id="__focused__" title="^(?!Messenger).*$" class="^(?!thunderbird|Caprine|discord|Spotify).*$"] kill bindsym $mod+Shift+q [con_id="__focused__" title="^(?!Messenger).*$" class="^(?!thunderbird|Caprine|discord|Spotify).*$"] kill
@ -173,9 +180,9 @@ mode "resize" {
bindsym $mod+r mode "resize" bindsym $mod+r mode "resize"
# set primary gruvbox colorscheme colors # set primary gruvbox colorscheme colors
set $bg #282828 set $bg #282828CC
set $red #cc241d set $red #cc241d
set $green #98971a set $green #4E562C
set $yellow #d79921 set $yellow #d79921
set $blue #458588 set $blue #458588
set $purple #b16286 set $purple #b16286
@ -185,36 +192,43 @@ set $darkgray #1d2021
# green gruvbox # green gruvbox
# class border|backgr|text|indicator|child_border # class border|backgr|text|indicator|child_border
client.focused $green $green $darkgray $purple $darkgray client.focused $green $green $darkgray $purple $green
client.focused_inactive $darkgray $darkgray $yellow $purple $darkgray client.focused_inactive $darkgray $darkgray $yellow $purple $darkgray
client.unfocused $darkgray $darkgray $yellow $purple $darkgray client.unfocused $red $darkgray $yellow $purple $darkgray
client.urgent $red $red $white $red $red client.urgent $red $red $white $red $red
# bar { bar {
# position top i3bar_command i3bar --transparency
# colors { position top
# background #282A36 status_command SCRIPT_DIR=~/.config/i3blocks i3blocks
# statusline #F8F8F2 tray_padding 5px
# separator #44475A padding 5px
# colors {
# focused_workspace #44475A #44475A #F8F8F2 # bar background color
# active_workspace #282A36 #44475A #F8F8F2 background $bg
# inactive_workspace #282A36 #282A36 #BFBFBF # text color used for blocks that do not have a color specified.
# urgent_workspace #FF5555 #FF5555 #F8F8F2 statusline $aqua
# binding_mode #FF5555 #FF5555 #F8F8F2 # workspaces section
# } # border backgr. text
# } focused_workspace $aqua $aqua $darkgray
inactive_workspace $darkgray $darkgray $yellow
active_workspace $darkgray $darkgray $yellow
urgent_workspace $red $red $bg
}
}
exec_always xrandr --output HDMI-1 --mode 3840x1200 -r 99.00 exec_always xrandr --output HDMI-1 --mode 3840x1200 -r 99.00
exec_always setxkbmap -option caps:escape exec_always setxkbmap -option caps:escape
exec_always --no-startup-id picom exec_always --no-startup-id picom -bc
exec_always --no-startup-id xset dpms 180 360 720
# bindsym $mod+d exec "dmenu_run -l 10 -nf '#F8F8F2' -nb '#282A36' -sb '#6272A4' -sf '#F8F8F2' -fn 'FiraCode Nerd Font-20' -p 'run:'" # bindsym $mod+d exec "dmenu_run -l 10 -nf '#F8F8F2' -nb '#282A36' -sb '#6272A4' -sf '#F8F8F2' -fn 'FiraCode Nerd Font-20' -p 'run:'"
exec feh --bg-fill ~/Pictures/wallpaper.jpg exec feh --bg-fill ~/Pictures/wallpaper.jpg
# exec_always --no-startup-id $HOME/.config/polybar/launch.sh
for_window [instance="Godot_Engine"] floating enable for_window [instance="Godot_Engine"] floating enable
for_window [title="Desktop @ QRect(0,0 3840x1200) — Plasma"] kill, floating enable, border none for_window [title="Desktop @ QRect(0,0 3840x1200) — Plasma"] kill, floating enable, border none
for_window [class="plasmashell"] floating enable for_window [class="plasmashell"] floating enable
for_window [class="Pavucontrol"] floating enable
for_window [class="Plasma"] floating enable, border none for_window [class="Plasma"] floating enable, border none
for_window [title="plasma-desktop"] floating enable, border none for_window [title="plasma-desktop"] floating enable, border none
for_window [title="win7"] floating enable, border none for_window [title="win7"] floating enable, border none
@ -226,20 +240,22 @@ for_window [class="(?i)*nextcloud*"] floating disable
for_window [class="plasmashell" window_type="notification"] floating enable, border none, move right 700px, move down 450px for_window [class="plasmashell" window_type="notification"] floating enable, border none, move right 700px, move down 450px
no_focus [class="plasmashell" window_type="notification"] no_focus [class="plasmashell" window_type="notification"]
for_window [class="Spotify"] floating enable for_window [class="Spotify"] floating enable
for_window [class="Bitwarden"] floating enable for_window [class="Bitwarden"] floating enable
for_window [class="steam"] floating enable for_window [class="steam"] floating enable
for_window [class="dolphin"] floating enable for_window [class="dolphin"] floating enable
for_window [class="Caprine"] floating enable move scratchpad for_window [class="Caprine"] floating enable move scratchpad
for_window [title="Messenger"] floating enable move scratchpad for_window [title="Messenger"] floating enable move scratchpad
for_window [class="discord"] floating enable move scratchpad for_window [class="discord"] floating enable move scratchpad
for_window [class="thunderbird"] floating enable move scratchpad for_window [class="thunderbird"] floating enable move scratchpad
for_window [class="Slack"] floating enable move scratchpad for_window [class="Slack"] floating enable move scratchpad
for_window [class="zoom"] floating enable for_window [class="spectacle"] floating enable
for_window [title="Overview Home Assistant"] floating enable for_window [class="zoom"] floating enable
for_window [title="Outlook"] floating enable for_window [class="Gpick"] floating enable
for_window [title="Netflix"] floating enable for_window [title="Overview Home Assistant"] floating enable
for_window [title="Welcome to Prime Video"] floating enable for_window [title="Outlook"] floating enable
for_window [title="Netflix"] floating enable
for_window [title="Welcome to Prime Video"] floating enable
bindsym $mod+Shift+minus move scratchpad bindsym $mod+Shift+minus move scratchpad
bindsym $mod+minus scratchpad show bindsym $mod+minus scratchpad show
@ -252,3 +268,10 @@ bindsym Shift+Print exec --no-startup-id maim --select "/home/$USER/Pictures/$(d
bindsym Ctrl+Print exec --no-startup-id maim | xclip -selection clipboard -t image/png bindsym Ctrl+Print exec --no-startup-id maim | xclip -selection clipboard -t image/png
bindsym Ctrl+$mod+Print exec --no-startup-id maim --window $(xdotool getactivewindow) | xclip -selection clipboard -t image/png bindsym Ctrl+$mod+Print exec --no-startup-id maim --window $(xdotool getactivewindow) | xclip -selection clipboard -t image/png
bindsym Ctrl+Shift+Print exec --no-startup-id maim --select | xclip -selection clipboard -t image/png bindsym Ctrl+Shift+Print exec --no-startup-id maim --select | xclip -selection clipboard -t image/png
default_border pixel 5
default_floating_border pixel 5
smart_borders on
gaps inner 20

26
polybar
View file

@ -17,13 +17,25 @@
;========================================================== ;==========================================================
[colors] [colors]
background = #282A2E # background = #282A2E
background-alt = #373B41 # background-alt = #373B41
foreground = #C5C8C6 # foreground = #C5C8C6
primary = #F0C674 # primary = #F0C674
secondary = #8ABEB7 # secondary = #8ABEB7
alert = #A54242 # alert = #A54242
disabled = #707880 # disabled = #707880
background = #282828
foreground = #ebdbb2
red = #fb4934
green = #b8bb26
yellow = #fabd2f
blue = #83a598
purple = #d3869b
teal = #8ec07c
orange = #fe8019
gray = #a89984
[bar/example] [bar/example]
width = 100% width = 100%

View file

@ -1,45 +1,61 @@
{ {
"keyboard.dispatch": "keyCode", "keyboard.dispatch": "keyCode",
"godot_tools.gdscript_lsp_server_port": 6005, "godot_tools.gdscript_lsp_server_port": 6005,
"terminal.integrated.shellArgs.linux": [ "terminal.integrated.profiles.linux": {
"-l" "bash": {
], "path": "bash",
"editor.fontLigatures": true, "icon": "terminal-bash",
"vim.handleKeys": { "args": ["--login"]
"<C-w>": false
}, },
"editor.fontFamily": "FiraCode Nerd Font", },
"yaml.schemas": { "editor.fontLigatures": true,
"file:///home/jaroslaw/.vscode-oss/extensions/atlassian.atlascode-3.0.2-universal/resources/schemas/pipelines-schema.json": "bitbucket-pipelines.yml" "vim.handleKeys": {
}, "<C-w>": false
"git.autofetch": true, },
"editor.formatOnSave": true, "editor.fontFamily": "FiraCode Nerd Font",
"terminal.integrated.confirmOnExit": "always", "yaml.schemas": {
"[typescript]": { "file:///home/jaroslaw/.vscode-oss/extensions/atlassian.atlascode-3.0.2-universal/resources/schemas/pipelines-schema.json": "bitbucket-pipelines.yml"
"editor.defaultFormatter": "esbenp.prettier-vscode" },
}, "git.autofetch": true,
"[typescriptreact]": { "editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode" "terminal.integrated.confirmOnExit": "always",
}, "[typescript]": {
"workbench.editor.enablePreview": false, "editor.defaultFormatter": "esbenp.prettier-vscode"
"diffEditor.renderSideBySide": false, },
"sshfs.configs": [ "[typescriptreact]": {
{ "editor.defaultFormatter": "esbenp.prettier-vscode"
"name": "proest" },
} "workbench.editor.enablePreview": false,
], "diffEditor.renderSideBySide": false,
"files.trimTrailingWhitespace": true, "sshfs.configs": [
"files.insertFinalNewline": true, {
"terminal.integrated.scrollback": 10000, "name": "proest"
"[rust]": {
"editor.defaultFormatter": "rust-lang.rust-analyzer"
},
"editor.inlayHints.fontSize": 8,
"editor.inlayHints.padding": true,
"workbench.colorTheme": "Catppuccin Macchiato",
"gitdoc.autoCommitDelay": 3000,
"workbench.iconTheme": "catppuccin-macchiato",
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
} }
],
"files.trimTrailingWhitespace": true,
"files.insertFinalNewline": true,
"terminal.integrated.scrollback": 10000,
"[rust]": {
"editor.defaultFormatter": "rust-lang.rust-analyzer"
},
"editor.inlayHints.fontSize": 8,
"editor.inlayHints.padding": true,
"workbench.colorTheme": "Gruvbox Dark Hard",
"gitdoc.autoCommitDelay": 3000,
"workbench.iconTheme": "minimalistic-icons",
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"editor.minimap.enabled": false,
"editor.renderWhitespace": "all",
"window.menuBarVisibility": "toggle",
"git.showActionButton": {
"commit": false,
"publish": false,
"sync": false
},
"git.showCommitInput": false,
"workbench.activityBar.visible": false,
"sync.gist": "ee2019552f59482a09ee3328c3a30c26",
"glassit.alpha": 220,
} }