gentoo-sway #2

Merged
dbroqua merged 116 commits from gentoo-sway into master 2021-10-24 00:30:54 +02:00
13 changed files with 99 additions and 8 deletions
Showing only changes of commit b48762b46f - Show all commits

39
bin/btswitch.sh Executable file
View file

@ -0,0 +1,39 @@
#! /bin/bash
HEADPHONE="88:D0:39:7D:6A:70"
SPEAKERS="EC:81:93:94:92:73"
if [ -z "$1" ]; then
echo "Missing profil"
echo "example: btswitch.sh <headphone|speakers>"
exit 1
fi
case ${1} in
headphone)
bluetoothctl disconnect ${SPEAKERS}
bluetoothctl connect ${HEADPHONE}
# INFO: Dirty
sleep 5
;;
speakers)
bluetoothctl disconnect ${HEADPHONE}
bluetoothctl connect ${SPEAKERS}
;;
*)
echo "Unknown mode"
exit 1
esac
OUTPUTID=`pactl list short sinks|grep bluez|cut -f 1`
echo "Set Bluetooth as default output"
pacmd set-default-sink ${OUTPUTID}
echo "Move streams to default output"
pactl list short sink-inputs|while read stream; do
streamId=$(echo $stream|cut '-d ' -f1)
echo "moving stream $streamId"
pactl move-sink-input "$streamId" "${OUTPUTID}"
done

View file

@ -1,4 +1,4 @@
#? Config file for bpytop v. 1.0.54 #? Config file for bpytop v. 1.0.61
#* Color theme, looks for a .theme file in "/usr/[local/]share/bpytop/themes" and "~/.config/bpytop/themes", "Default" for builtin default theme. #* Color theme, looks for a .theme file in "/usr/[local/]share/bpytop/themes" and "~/.config/bpytop/themes", "Default" for builtin default theme.
#* Prefix name by a plus sign (+) for a theme located in user themes folder, i.e. color_theme="+monokai" #* Prefix name by a plus sign (+) for a theme located in user themes folder, i.e. color_theme="+monokai"
@ -7,8 +7,11 @@ color_theme="nord"
#* If the theme set background should be shown, set to False if you want terminal background transparency #* If the theme set background should be shown, set to False if you want terminal background transparency
theme_background=True theme_background=True
#* Set bpytop view mode, "full" for everything shown, "proc" for cpu stats and processes, "stat" for cpu, mem, disks and net stats shown. #* Sets if 24-bit truecolor should be used, will convert 24-bit colors to 256 color (6x6x6 color cube) if false.
view_mode=full truecolor=True
#* Manually set which boxes to show. Available values are "cpu mem net proc", seperate values with whitespace.
shown_boxes="cpu mem net proc"
#* Update time in milliseconds, increases automatically if set below internal loops processing time, recommended 2000 ms or above for better sample times for graphs. #* Update time in milliseconds, increases automatically if set below internal loops processing time, recommended 2000 ms or above for better sample times for graphs.
update_ms=2000 update_ms=2000
@ -42,6 +45,25 @@ proc_per_core=False
#* Show process memory as bytes instead of percent #* Show process memory as bytes instead of percent
proc_mem_bytes=True proc_mem_bytes=True
#* Sets the CPU stat shown in upper half of the CPU graph, "total" is always available, see:
#* https://psutil.readthedocs.io/en/latest/#psutil.cpu_times for attributes available on specific platforms.
#* Select from a list of detected attributes from the options menu
cpu_graph_upper="total"
#* Sets the CPU stat shown in lower half of the CPU graph, "total" is always available, see:
#* https://psutil.readthedocs.io/en/latest/#psutil.cpu_times for attributes available on specific platforms.
#* Select from a list of detected attributes from the options menu
cpu_graph_lower="total"
#* Toggles if the lower CPU graph should be inverted.
cpu_invert_lower=True
#* Set to True to completely disable the lower CPU graph.
cpu_single_graph=False
#* Shows the system uptime in the CPU box.
show_uptime=True
#* Check cpu temperature, needs "osx-cpu-temp" on MacOS X. #* Check cpu temperature, needs "osx-cpu-temp" on MacOS X.
check_temp=True check_temp=True
@ -76,6 +98,25 @@ swap_disk=True
#* If mem box should be split to also show disks info. #* If mem box should be split to also show disks info.
show_disks=True show_disks=True
#* Filter out non physical disks. Set this to False to include network disks, RAM disks and similar.
only_physical=True
#* Read disks list from /etc/fstab. This also disables only_physical.
use_fstab=False
#* Toggles if io stats should be shown in regular disk usage view
show_io_stat=True
#* Toggles io mode for disks, showing only big graphs for disk read/write speeds.
io_mode=False
#* Set to True to show combined read/write io graphs in io mode.
io_graph_combined=False
#* Set the top speed for the io graphs in MiB/s (10 by default), use format "device:speed" seperate disks with a comma ",".
#* Example: "/dev/sda:100, /dev/sdb:20"
io_graph_speeds=""
#* Set fixed values for network graphs, default "10M" = 10 Mibibytes, possible units "K", "M", "G", append with "bit" for bits instead of bytes, i.e "100mbit" #* Set fixed values for network graphs, default "10M" = 10 Mibibytes, possible units "K", "M", "G", append with "bit" for bits instead of bytes, i.e "100mbit"
net_download="10M" net_download="10M"
net_upload="10M" net_upload="10M"
@ -89,6 +130,9 @@ net_sync=False
#* If the network graphs color gradient should scale to bandwith usage or auto scale, bandwith usage is based on "net_download" and "net_upload" values #* If the network graphs color gradient should scale to bandwith usage or auto scale, bandwith usage is based on "net_download" and "net_upload" values
net_color_fixed=False net_color_fixed=False
#* Starts with the Network Interface specified here.
net_iface=""
#* Show battery stats in top right if battery is present #* Show battery stats in top right if battery is present
show_battery=False show_battery=False

View file

@ -13,7 +13,7 @@ input "type:keyboard" {
set $mod Mod4 set $mod Mod4
# Displays # Displays
set $display1 HDMI-A-3 #set $display1 HDMI-A-3
# Workspaces # Workspaces
set $wksp1 "1: Main" set $wksp1 "1: Main"
@ -269,7 +269,7 @@ mode "move" {
### Default placement ### Default placement
# #
workspace $wksp1 output $display1 #workspace $wksp1 output $display1
### Default workspace layout ### Default workspace layout

View file

@ -106,7 +106,8 @@
"on-click": "~/bin/music.sh Next" "on-click": "~/bin/music.sh Next"
}, },
"mpd": { "mpd": {
"format": "{stateIcon}{randomIcon}{repeatIcon}{singleIcon} {artist} - {album} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S}) ", "format": "{stateIcon}{randomIcon}{repeatIcon}{singleIcon} {artist} - {title} ",
// "format": "{stateIcon}{randomIcon}{repeatIcon}{singleIcon} {artist} - {album} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S}) ",
"format-disconnected": "Disconnected ", "format-disconnected": "Disconnected ",
"format-stopped": "{randomIcon}{repeatIcon}{singleIcon} Stopped ", "format-stopped": "{randomIcon}{repeatIcon}{singleIcon} Stopped ",
"interval": 10, "interval": 10,

BIN
icons/postman.png Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 37 KiB

After

Width:  |  Height:  |  Size: 37 KiB

View file

@ -0,0 +1,9 @@
[Desktop Entry]
Type=Application
Name=Postman
Comment=The collaboration platform for API Development
Exec=/home/dbroqua/Softwares/Postman/app/Postman
Icon=/home/dbroqua/icons/postman.png
Categories=Development;IDE;
StartupNotify=true
Terminal=false

View file

@ -1 +0,0 @@
/home/dbroqua/Projects/forked/rofi-scripts/rofi-finder/finder.sh

View file

@ -1 +0,0 @@
/home/dbroqua/Projects/forked/rofi-scripts/mode-scripts/rofi-file-browser.sh