This commit is contained in:
2022-02-22 03:40:32 +01:00
parent 222706d7e1
commit 0f3ebffb15
10 changed files with 1326 additions and 29 deletions

1111
.config/kitty/kitty.conf Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,10 @@
logLevel = info
traceLevel = error
recordSeconds = 180
videoInput = hwaccel
videoDevice = auto
videoFramerate = 60
keyName = r
keyMods = ctrl+super
outputFile = /home/beppe/media/Game Captures/replay-sorcery/%F_%H-%M-%S.mp4

View File

@@ -0,0 +1 @@
/usr/lib/systemd/user/replay-sorcery.service

View File

@@ -3,7 +3,9 @@ Description=Sleep Manager
PartOf=graphical-session.target PartOf=graphical-session.target
[Service] [Service]
ExecStart=/usr/bin/xautolock -time 10 -locker "i3exit suspend" -detectsleep #ExecStart=/usr/bin/xautolock -time 10 -locker "i3exit suspend" -detectsleep
ExecStart=/usr/bin/swayidle -w timeout 300 'swaylock -f -c 262626' timeout 600 'systemctl suspend' before-sleep 'swaylock -f -c 262626'
Environment=WAYLAND_DISPLAY=wayland-1
[Install] [Install]
WantedBy=xsession.target WantedBy=xsession.target

View File

@@ -0,0 +1 @@
/home/beppe/.config/systemd/user/sleep.service

159
.config/waybar/config Normal file
View File

@@ -0,0 +1,159 @@
{
"layer": "top", // Waybar at top layer
"position": "bottom", // Waybar position (top|bottom|left|right)
"height": 12, // Waybar height (to be removed for auto height)
// "width": 1280, // Waybar width
"spacing": 1, // Gaps between modules (4px)
// Choose the order of the modules
"modules-left": ["sway/workspaces", "sway/mode", "custom/media"],
"modules-center": [],
"modules-right": [ "idle_inhibitor", "pulseaudio", "network", "cpu", "memory", "temperature", "backlight", "battery", "battery#bat2", "clock", "tray"],
// Modules configuration
// "sway/workspaces": {
// "disable-scroll": true,
// "all-outputs": true,
// "format": "{name}: {icon}",
// "format-icons": {
// "1": "",
// "2": "",
// "3": "",
// "4": "",
// "5": "",
// "urgent": "",
// "focused": "",
// "default": ""
// }
// },
"keyboard-state": {
"numlock": true,
"capslock": true,
"format": "{name} {icon}",
"format-icons": {
"locked": "",
"unlocked": ""
}
},
"sway/mode": {
"format": "<span style=\"italic\">{}</span>"
},
"mpd": {
"format": "{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon}{artist} - {album} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S}) ⸨{songPosition}|{queueLength}⸩ {volume}% ",
"format-disconnected": "Disconnected ",
"format-stopped": "{consumeIcon}{randomIcon}{repeatIcon}{singleIcon}Stopped ",
"unknown-tag": "N/A",
"interval": 2,
"consume-icons": {
"on": " "
},
"random-icons": {
"off": "<span color=\"#f53c3c\"></span> ",
"on": " "
},
"repeat-icons": {
"on": " "
},
"single-icons": {
"on": "1 "
},
"state-icons": {
"paused": "",
"playing": ""
},
"tooltip-format": "MPD (connected)",
"tooltip-format-disconnected": "MPD (disconnected)"
},
"idle_inhibitor": {
"format": "{icon}",
"format-icons": {
"activated": "",
"deactivated": ""
}
},
"tray": {
// "icon-size": 21,
"spacing": 10
},
"clock": {
// "timezone": "America/New_York",
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
"format-alt": "{:%Y-%m-%d}"
},
"cpu": {
"format": "{usage}% ",
"tooltip": false
},
"memory": {
"format": "{}% "
},
"temperature": {
// "thermal-zone": 2,
// "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
"critical-threshold": 80,
// "format-critical": "{temperatureC}°C {icon}",
"format": "{temperatureC}°C {icon}",
"format-icons": ["", "", ""]
},
"backlight": {
// "device": "acpi_video1",
"format": "{percent}% {icon}",
"format-icons": ["", ""]
},
"battery": {
"states": {
// "good": 95,
"warning": 30,
"critical": 15
},
"format": "{capacity}% {icon}",
"format-charging": "{capacity}% ",
"format-plugged": "{capacity}% ",
"format-alt": "{time} {icon}",
// "format-good": "", // An empty format will hide the module
// "format-full": "",
"format-icons": ["", "", "", "", ""]
},
"battery#bat2": {
"bat": "BAT2"
},
"network": {
// "interface": "wlp2*", // (Optional) To force the use of this interface
"format-wifi": "{essid} ({signalStrength}%) ",
"format-ethernet": "{ipaddr}/{cidr} ",
"tooltip-format": "{ifname} via {gwaddr} ",
"format-linked": "{ifname} (No IP) ",
"format-disconnected": "Disconnected ⚠",
"format-alt": "{ifname}: {ipaddr}/{cidr}"
},
"pulseaudio": {
// "scroll-step": 1, // %, can be a float
"format": "{volume}% {icon} {format_source}",
"format-bluetooth": "{volume}% {icon} {format_source}",
"format-bluetooth-muted": " {icon} {format_source}",
"format-muted": " {format_source}",
"format-source": "{volume}% ",
"format-source-muted": "",
"format-icons": {
"headphone": "",
"hands-free": "",
"headset": "",
"phone": "",
"portable": "",
"car": "",
"default": ["", "", ""]
},
"on-click": "pavucontrol"
},
"custom/media": {
"format": "{icon} {}",
"return-type": "json",
"max-length": 40,
"format-icons": {
"spotify": "",
"default": "🎜"
},
"escape": true,
"exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder
// "exec": "$HOME/.config/waybar/mediaplayer.py --player spotify 2> /dev/null" // Filter player based on name
}
}

View File

@@ -27,7 +27,9 @@ font xft:URWGothic-Book 11
floating_modifier $mod floating_modifier $mod
# start a terminal # start a terminal
bindsym $mod+Return exec terminal bindsym $mod+Return exec kitty
bindsym $mod+Shift+s exec replay-sorcery save
# kill focused window # kill focused window
bindsym $mod+q kill bindsym $mod+q kill
@@ -35,7 +37,7 @@ bindsym $mod+q kill
# start program launcher # start program launcher
#bindsym $mod+d exec --no-startup-id dmenu_recency #bindsym $mod+d exec --no-startup-id dmenu_recency
bindsym $mod+space exec --no-startup-id rofi -show run bindsym $mod+space exec --no-startup-id wofi --show run
# launch categorized menu # launch categorized menu
bindsym $mod+z exec --no-startup-id morc_menu bindsym $mod+z exec --no-startup-id morc_menu
@@ -80,6 +82,11 @@ bindsym $mod+Ctrl+x --release exec --no-startup-id xkill
#bindsym $mod+e focus up #bindsym $mod+e focus up
#bindsym $mod+o focus right #bindsym $mod+o focus right
#bindsym $mod+Tab focus right
#bindsym $mod+Shift+Tab
#bindsym $mod+Ctrl+Tab workspace next
#bindsym $mod+Ctrl+Shift+Tab workspace prev
# alternatively, you can use the cursor keys: # alternatively, you can use the cursor keys:
bindsym $mod+Left focus left bindsym $mod+Left focus left
bindsym $mod+Down focus down bindsym $mod+Down focus down
@@ -123,7 +130,7 @@ bindsym $mod+Shift+space floating toggle
#bindsym $mod+space focus mode_toggle #bindsym $mod+space focus mode_toggle
# toggle sticky # toggle sticky
bindsym $mod+Shift+s sticky toggle #bindsym $mod+Shift+s sticky toggle
# focus the parent container # focus the parent container
bindsym $mod+a focus parent bindsym $mod+a focus parent
@@ -229,7 +236,7 @@ bindsym $mod+Ctrl+r reload
#restart #restart
# exit i3 (logs you out of your X session) # 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'" bindsym $mod+Shift+e exec "swaynag -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' 'swaymsg exit'"
bindsym $mod+Shift+Ctrl+e exit bindsym $mod+Shift+Ctrl+e exit
# Set shut down, restart and locking features # Set shut down, restart and locking features
@@ -324,30 +331,31 @@ exec_always --no-startup-id fix_xcursor
# background #14191D # background #14191D
# to: # to:
# background $term_background # background $term_background
# Same logic applied to everything else. ## Same logic applied to everything else.
set_from_resource $term_background background #set_from_resource $term_background background
set_from_resource $term_foreground foreground #set_from_resource $term_foreground foreground
set_from_resource $term_color0 color0 #set_from_resource $term_color0 color0
set_from_resource $term_color1 color1 #set_from_resource $term_color1 color1
set_from_resource $term_color2 color2 #set_from_resource $term_color2 color2
set_from_resource $term_color3 color3 #set_from_resource $term_color3 color3
set_from_resource $term_color4 color4 #set_from_resource $term_color4 color4
set_from_resource $term_color5 color5 #set_from_resource $term_color5 color5
set_from_resource $term_color6 color6 #set_from_resource $term_color6 color6
set_from_resource $term_color7 color7 #set_from_resource $term_color7 color7
set_from_resource $term_color8 color8 #set_from_resource $term_color8 color8
set_from_resource $term_color9 color9 #set_from_resource $term_color9 color9
set_from_resource $term_color10 color10 #set_from_resource $term_color10 color10
set_from_resource $term_color11 color11 #set_from_resource $term_color11 color11
set_from_resource $term_color12 color12 #set_from_resource $term_color12 color12
set_from_resource $term_color13 color13 #set_from_resource $term_color13 color13
set_from_resource $term_color14 color14 #set_from_resource $term_color14 color14
set_from_resource $term_color15 color15 #set_from_resource $term_color15 color15
# Start i3bar to display a workspace bar (plus the system information i3status if available) # Start i3bar to display a workspace bar (plus the system information i3status if available)
bar { bar {
i3bar_command i3bar swaybar_command waybar
status_command i3status #i3bar_command i3bar
#status_command i3status
position bottom position bottom
## please set your primary output first. Example: 'xrandr --output eDP1 --primary' ## please set your primary output first. Example: 'xrandr --output eDP1 --primary'
@@ -442,4 +450,6 @@ mode "$mode_gaps_outer" {
bindsym Return mode "default" bindsym Return mode "default"
bindsym Escape mode "default" bindsym Escape mode "default"
} }
exec systemctl --user start sleep
exec solaar --restart-on-wakeup -w hide
exec systemctl start sleep --user

View File

@@ -3,5 +3,6 @@ export EDITOR=/usr/bin/vim
export GTK2_RC_FILES="$HOME/.gtkrc-2.0" export GTK2_RC_FILES="$HOME/.gtkrc-2.0"
# fix "xdg-open fork-bomb" export your preferred browser from here # fix "xdg-open fork-bomb" export your preferred browser from here
export BROWSER=/usr/bin/firefox export BROWSER=/usr/bin/firefox
export RADV_DEBUG=llvm #export RADV_DEBUG=llvm
export AMD_VULKAN_ICD=RADV export AMD_VULKAN_ICD=RADV
export RADV_PERFTEST=aco

3
.zshrc
View File

@@ -109,4 +109,5 @@ alias hit="git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME"
#Vars #Vars
export PATH=$PATH:/usr/local/sbin export PATH=$PATH:/usr/local/sbin
export RADV_DEBUG=llvm #export RADV_DEBUG=llvm

1
autoexec.cfg Symbolic link
View File

@@ -0,0 +1 @@
.steam/steam/steamapps/common/Counter-Strike Global Offensive/csgo/cfg/autoexec.cfg